Documentation ¶
Index ¶
- func ParseProtocolVersion(protocolVersion string) (*kversion.Versions, error)
- type ConsumeClient
- type EnvelopeIn
- type EnvelopeOut
- func (e *EnvelopeOut) AsFranzGoRecord() *kgo.Record
- func (e *EnvelopeOut) ResetPayload()
- func (e *EnvelopeOut) SetBindings(bindings runKafka.MessageBindings)
- func (e *EnvelopeOut) SetContentType(contentType string)
- func (e *EnvelopeOut) SetHeaders(headers run.Headers)
- func (e *EnvelopeOut) SetTopic(topic string)
- func (e *EnvelopeOut) Write(p []byte) (n int, err error)
- type ImplementationRecord
- type ProduceClient
- type PublishChannel
- type SubscribeChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsumeClient ¶
type ConsumeClient struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
func NewConsumer(serverURL string, bindings *runKafka.ServerBindings, extraOpts []kgo.Opt) (*ConsumeClient, error)
func (ConsumeClient) Subscriber ¶
func (c ConsumeClient) Subscriber(_ context.Context, channelName string, bindings *runKafka.ChannelBindings) (runKafka.Subscriber, error)
type EnvelopeIn ¶
func NewEnvelopeIn ¶
func NewEnvelopeIn(r *kgo.Record) *EnvelopeIn
func (EnvelopeIn) Headers ¶
func (e EnvelopeIn) Headers() run.Headers
type EnvelopeOut ¶
func NewEnvelopeOut ¶
func NewEnvelopeOut() *EnvelopeOut
func (*EnvelopeOut) AsFranzGoRecord ¶
func (e *EnvelopeOut) AsFranzGoRecord() *kgo.Record
func (*EnvelopeOut) ResetPayload ¶
func (e *EnvelopeOut) ResetPayload()
func (*EnvelopeOut) SetBindings ¶
func (e *EnvelopeOut) SetBindings(bindings runKafka.MessageBindings)
func (*EnvelopeOut) SetContentType ¶
func (e *EnvelopeOut) SetContentType(contentType string)
func (*EnvelopeOut) SetHeaders ¶
func (e *EnvelopeOut) SetHeaders(headers run.Headers)
func (*EnvelopeOut) SetTopic ¶
func (e *EnvelopeOut) SetTopic(topic string)
type ImplementationRecord ¶
type ProduceClient ¶
type ProduceClient struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(serverURL string, bindings *runKafka.ServerBindings, extraOpts []kgo.Opt) (*ProduceClient, error)
type PublishChannel ¶
func (PublishChannel) Close ¶
func (p PublishChannel) Close() error
func (PublishChannel) Send ¶
func (p PublishChannel) Send(ctx context.Context, envelopes ...runKafka.EnvelopeWriter) error
type SubscribeChannel ¶
type SubscribeChannel struct { *kgo.Client Topic string IgnoreFetchErrors bool // TODO: add opts for Subscriber/Publisher interfaces // contains filtered or unexported fields }
func (SubscribeChannel) Close ¶
func (s SubscribeChannel) Close() error
func (SubscribeChannel) Receive ¶
func (s SubscribeChannel) Receive(ctx context.Context, cb func(envelope runKafka.EnvelopeReader)) error
Click to show internal directories.
Click to hide internal directories.