Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExactlyOnceHandler ¶ added in v0.0.3
type ExactlyOnceSubscriber ¶ added in v0.0.3
type ExactlyOnceSubscriber struct {
// contains filtered or unexported fields
}
func NewExactlyOnceConsumer ¶ added in v0.0.3
func NewExactlyOnceConsumer(logger logger.Logger, js nats.JetStreamContext, stream string, durable string, description string, subject string, handler ExactlyOnceHandler) (*ExactlyOnceSubscriber, error)
NewExactlyOnceConsumer will create (or reuse) an exactly once durable consumer
func (*ExactlyOnceSubscriber) Close ¶ added in v0.0.3
func (s *ExactlyOnceSubscriber) Close()
Close will shutdown subscriptions and wait for the subscriber to be shutdown
Click to show internal directories.
Click to hide internal directories.