Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
type Opts struct{}
Opts is a set of options for a NATS source.
func DefaultOpts ¶
func DefaultOpts() *Opts
DefaultOpts is a function that returns a set of default options for a NATS source.
type Source ¶
type Source[K, V any] struct { // contains filtered or unexported fields }
Source is a source of NATS messages.
func WithContext ¶
func WithContext[K, V any](ctx context.Context, sub *nats.Subscription, key codec.Decoder[K], value codec.Decoder[V], opts ...Opt) *Source[K, V]
WithContext is a function that configures a NATS source with a context.
Click to show internal directories.
Click to hide internal directories.