Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JetstreamClient ¶
type JetstreamClient struct { nats.JetStreamContext // contains filtered or unexported fields }
JetstreamClient
Wrapper for nats.JetstreamContext to handle errors, closure of the server connection and stream initialization.
func NewJetstreamClient ¶
func NewJetstreamClient(cfg config.JetstreamConfig, logger logging.Logger) (*JetstreamClient, error)
NewJetstreamClient
Create a net NewJetstreamClient
func (*JetstreamClient) Close ¶
func (c *JetstreamClient) Close()
Close
Closes the internal connection to the jetstream server.
Click to show internal directories.
Click to hide internal directories.