Categorygithub.com/cloudevents/sdk-go/protocol/stan/v2
modulepackage
2.15.2
Repository: https://github.com/cloudevents/sdk-go.git
Documentation: pkg.go.dev

# Functions

MessageMetadataFrom extracts the STAN message metadata from the provided ctx.
MetadataContextDecorator returns an inbound context decorator which adds STAN message metadata to the current context.
No description provided by the author
No description provided by the author
NewMessage wraps a *nats.Msg in a binding.Message.
NewProtocol creates a new STAN protocol including managing the lifecycle of the connection.
NewProtocolFromConn creates a new STAN protocol but leaves managing the lifecycle of the connection up to the caller.
No description provided by the author
NewSender creates a new protocol.Sender responsible for opening and closing the STAN connection.
NewSenderFromConn creates a new protocol.Sender which leaves responsibility for opening and closing the STAN connection to the caller.
StanOptions is a helper function to group a variadic stan.Option into []stan.Option.
No description provided by the author
No description provided by the author
No description provided by the author
WithQueueSubscriber configures the transport to create a queue subscription instead of a standard subscription.
No description provided by the author
WithSubscriptionOptions sets options to configure the STAN subscription.
WithUnsubscribeOnClose configures the Consumer to unsubscribe when OpenInbound context is cancelled or when Consumer.Close() is invoked.
WriteMsg fills the provided writer with the bindings.Message m.

# Variables

No description provided by the author

# Structs

Consumer is responsible for managing STAN subscriptions and makes messages available via the Receiver interface.
Message implements binding.Message by wrapping an *stan.Msg.
MsgMetadata holds metadata of a received *stan.Msg.
Protocol is a reference implementation for using the CloudEvents binding integration.
QueueSubscriber creates queue subscriptions.
Receiver implements protocol.Receiver for STAN subscriptions.
RegularSubscriber creates regular subscriptions.
No description provided by the author

# Interfaces

The Subscriber interface allows us to configure how the subscription is created.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author