Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // initialize NATS connection Init() error // check if any stream exists in NATS JetStream StreamExists() (bool, error) // GetStreams returns all the streams in NATS JetStream GetStreams() ([]*nats.StreamInfo, error) // ConsumersExist checks if any consumer exists for the given stream ConsumersExist(streamName string) (bool, error) // close NATS connection Close() }
func NewNatsClient ¶
Click to show internal directories.
Click to hide internal directories.