Add mesh VPN packet production contract constants

This commit is contained in:
2026-05-12 10:08:34 +03:00
parent 2eb4a769d0
commit bdf5594001
@@ -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")
@@ -59,7 +60,15 @@ const (
ProductionChannelFabricControl = "fabric_control" ProductionChannelFabricControl = "fabric_control"
ProductionMessageFabricControl = "fabric.control" ProductionMessageFabricControl = "fabric.control"
ProductionChannelVPNPacket = "vpn_packet"
ProductionMessageVPNPacketBatch = "vpn.packet_batch"
FabricServiceClassVPNPackets = "vpn_packets"
FabricServiceChannelBulk = "bulk"
FabricServiceChannelControl = "control"
FabricServiceChannelInteractive = "interactive"
FabricServiceChannelReliable = "reliable"
MaxProductionEnvelopePayloadBytes = 4096 MaxProductionEnvelopePayloadBytes = 4096
MaxProductionVPNPacketPayloadBytes = 256 * 1024
MaxProductionEnvelopeFutureSkew = time.Minute MaxProductionEnvelopeFutureSkew = time.Minute
) )