Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMaxEnvelopeSize = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumeClient ¶
type ConsumeClient struct { *net.TCPListener // Scanner splits the incoming data into Envelopes. If equal to nil, the data will // be split on chunks of MaxEnvelopeSize bytes, which is equal to bufio.MaxScanTokenSize by default. Scanner *bufio.Scanner MaxEnvelopeSize int }
func NewConsumer ¶
func NewConsumer(listenURL string) (*ConsumeClient, error)
func (*ConsumeClient) Subscriber ¶
func (c *ConsumeClient) Subscriber(_ context.Context, _ string, _ *runTCP.ChannelBindings) (runTCP.Subscriber, error)
type EnvelopeIn ¶
func NewEnvelopeIn ¶
func NewEnvelopeIn(msg []byte) *EnvelopeIn
func (*EnvelopeIn) Headers ¶
func (e *EnvelopeIn) Headers() run.Headers
type EnvelopeOut ¶
func NewEnvelopeOut ¶
func NewEnvelopeOut() *EnvelopeOut
func (*EnvelopeOut) ResetPayload ¶
func (e *EnvelopeOut) ResetPayload()
func (*EnvelopeOut) SetBindings ¶
func (e *EnvelopeOut) SetBindings(_ runTCP.MessageBindings)
func (*EnvelopeOut) SetContentType ¶
func (e *EnvelopeOut) SetContentType(contentType string)
func (*EnvelopeOut) SetHeaders ¶
func (e *EnvelopeOut) SetHeaders(headers run.Headers)
type ImplementationRecord ¶
type ImplementationRecord interface {
Bytes() []byte
}
type ProduceClient ¶
type ProduceClient struct { net.Dialer // Scanner splits the incoming data into Envelopes. If equal to nil, the data is // split on chunks of MaxEnvelopeSize bytes, which is equal to bufio.MaxScanTokenSize by default. Scanner *bufio.Scanner MaxEnvelopeSize int // contains filtered or unexported fields }
func NewProducer ¶
func NewProducer(serverURL string) (*ProduceClient, error)
Click to show internal directories.
Click to hide internal directories.