Documentation ¶
Index ¶
- Constants
- func BuildInvokeOutboundByErr(err *transerr.TransError) *pb.Outbound
- func BuildInvokeOutboundByPayload(payload []byte) *pb.Outbound
- func BuildTransportOutboundByErr(err *transerr.TransError) *pb.TransportOutbound
- func BuildTransportOutboundByPayload(payload []byte) *pb.TransportOutbound
- type Codec
- type Outbound
- type ProtoCodec
Constants ¶
View Source
const ( PtpSessionID = "x-ptp-session-id" PtpTargetNodeID = "x-ptp-target-node-id" PtpSourceNodeID = "x-ptp-source-node-id" PtpTraceID = "x-ptp-trace-id" PtpTopicID = "x-ptp-topic" )
header
Variables ¶
This section is empty.
Functions ¶
func BuildInvokeOutboundByErr ¶
func BuildInvokeOutboundByErr(err *transerr.TransError) *pb.Outbound
func BuildTransportOutboundByErr ¶
func BuildTransportOutboundByErr(err *transerr.TransError) *pb.TransportOutbound
func BuildTransportOutboundByPayload ¶
func BuildTransportOutboundByPayload(payload []byte) *pb.TransportOutbound
Types ¶
type Outbound ¶
type Outbound ptp.TransportOutbound
func BuildOutboundByErr ¶
func BuildOutboundByErr(err *transerr.TransError) *Outbound
func BuildOutboundByPayload ¶
type ProtoCodec ¶
type ProtoCodec struct { }
func NewProtoCodec ¶
func NewProtoCodec() *ProtoCodec
func (*ProtoCodec) ContentType ¶
func (c *ProtoCodec) ContentType() string
Click to show internal directories.
Click to hide internal directories.