Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NatsPublisher ¶
type NatsPublisher[T any] struct { // contains filtered or unexported fields }
func (*NatsPublisher[T]) Publish ¶
func (n *NatsPublisher[T]) Publish( ctx context.Context, record T, meta common.MetaData, publishOptions *PublishOptions, ) error
type PublishOptions ¶ added in v1.1.0
type Publisher ¶
type Publisher[T any] interface { Publish( ctx context.Context, record T, meta common.MetaData, headers *PublishOptions, ) error }
func NewNatsPublisher ¶
func NewNatsPublisher[T any]( con *nats.Conn, subject string, interceptors ...UnaryPublisherInterceptorFunc, ) Publisher[T]
type UnaryPublisherFunc ¶
type UnaryPublisherInterceptorFunc ¶
type UnaryPublisherInterceptorFunc = func(next UnaryPublisherFunc) UnaryPublisherFunc
Click to show internal directories.
Click to hide internal directories.