Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderIPHeaders = "headers" HeaderIPVersion = "version" )
View Source
const DefaultMaxEnvelopeSize = 1024
Variables ¶
View Source
var ErrUnexpectedIPVersion = errors.New("unexpected IP version")
Functions ¶
This section is empty.
Types ¶
type Channel ¶
func NewChannel ¶
func (*Channel) SetIncludeIPHeaders ¶
type Client ¶
type Client struct { Config net.ListenConfig // MaxEnvelopeSize is the maximum size of received envelopes. It should be set to the maximum // expected size of the IP datagram that can be received. If the size of the received datagram // exceeds this value, the datagram will be truncated and the rest of the data will be lost. By default, it is 1024. MaxEnvelopeSize int // contains filtered or unexported fields }
func (*Client) Subscriber ¶
func (c *Client) Subscriber(ctx context.Context, _ string, _ *runIP.ChannelBindings) (runIP.Subscriber, error)
type EnvelopeIn ¶
func NewEnvelopeIn ¶
func NewEnvelopeIn(headers, payload []byte, version int) *EnvelopeIn
func (*EnvelopeIn) Headers ¶
func (e *EnvelopeIn) Headers() run.Headers
type EnvelopeOut ¶
func NewEnvelopeOut ¶
func NewEnvelopeOut() *EnvelopeOut
func (*EnvelopeOut) HeaderBytes ¶
func (e *EnvelopeOut) HeaderBytes() ([]byte, error)
func (*EnvelopeOut) ResetPayload ¶
func (e *EnvelopeOut) ResetPayload()
func (*EnvelopeOut) SetBindings ¶
func (e *EnvelopeOut) SetBindings(_ runIP.MessageBindings)
func (*EnvelopeOut) SetContentType ¶
func (e *EnvelopeOut) SetContentType(_ string)
func (*EnvelopeOut) SetHeaders ¶
func (e *EnvelopeOut) SetHeaders(headers run.Headers)
type ImplementationRecord ¶
Click to show internal directories.
Click to hide internal directories.