Add mesh VPN packet production contract constants
This commit is contained in:
@@ -16,6 +16,7 @@ var (
|
|||||||
ErrForwardPeerUnavailable = errors.New("production mesh next peer is unavailable")
|
ErrForwardPeerUnavailable = errors.New("production mesh next peer is unavailable")
|
||||||
ErrForwardEnvelopeInvalid = errors.New("production mesh envelope is invalid")
|
ErrForwardEnvelopeInvalid = errors.New("production mesh envelope is invalid")
|
||||||
ErrForwardObservationFailed = errors.New("production mesh envelope observation failed")
|
ErrForwardObservationFailed = errors.New("production mesh envelope observation failed")
|
||||||
|
ErrForwardDeliveryFailed = errors.New("production mesh envelope delivery failed")
|
||||||
ErrMeshRuntimeDisabled = errors.New("mesh synthetic runtime is disabled")
|
ErrMeshRuntimeDisabled = errors.New("mesh synthetic runtime is disabled")
|
||||||
ErrUnsupportedSyntheticMessage = errors.New("unsupported synthetic mesh message")
|
ErrUnsupportedSyntheticMessage = errors.New("unsupported synthetic mesh message")
|
||||||
ErrRouteIDRequired = errors.New("mesh synthetic route id is required")
|
ErrRouteIDRequired = errors.New("mesh synthetic route id is required")
|
||||||
@@ -57,10 +58,18 @@ const (
|
|||||||
SyntheticRouteStateDegraded = "degraded"
|
SyntheticRouteStateDegraded = "degraded"
|
||||||
SyntheticRouteStateFailed = "failed"
|
SyntheticRouteStateFailed = "failed"
|
||||||
|
|
||||||
ProductionChannelFabricControl = "fabric_control"
|
ProductionChannelFabricControl = "fabric_control"
|
||||||
ProductionMessageFabricControl = "fabric.control"
|
ProductionMessageFabricControl = "fabric.control"
|
||||||
MaxProductionEnvelopePayloadBytes = 4096
|
ProductionChannelVPNPacket = "vpn_packet"
|
||||||
MaxProductionEnvelopeFutureSkew = time.Minute
|
ProductionMessageVPNPacketBatch = "vpn.packet_batch"
|
||||||
|
FabricServiceClassVPNPackets = "vpn_packets"
|
||||||
|
FabricServiceChannelBulk = "bulk"
|
||||||
|
FabricServiceChannelControl = "control"
|
||||||
|
FabricServiceChannelInteractive = "interactive"
|
||||||
|
FabricServiceChannelReliable = "reliable"
|
||||||
|
MaxProductionEnvelopePayloadBytes = 4096
|
||||||
|
MaxProductionVPNPacketPayloadBytes = 256 * 1024
|
||||||
|
MaxProductionEnvelopeFutureSkew = time.Minute
|
||||||
)
|
)
|
||||||
|
|
||||||
type PeerIdentity struct {
|
type PeerIdentity struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user