Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrEmptyConfig when given empty options ErrEmptyConfig = Error("nats empty config") )
Variables ¶
View Source
var ( // Module is default Nats client Module = module.Module{ {Constructor: NewDefaultConfig}, {Constructor: NewConnection}, {Constructor: NewDefaultStreamerConfig}, {Constructor: NewStreamer}, } )
Functions ¶
func NewStreamer ¶
func NewStreamer(bus *Client, opts StreamerConfig) (nats.JetStreamContext, error)
NewStreamer is jetstream client
Types ¶
type Client ¶
type Client = nats.Conn
Client alias
func NewConnection ¶
NewConnection of nats client
type StreamerConfig ¶
type StreamerConfig = []nats.JSOpt
func NewDefaultStreamerConfig ¶
func NewDefaultStreamerConfig(v *viper.Viper) StreamerConfig
Click to show internal directories.
Click to hide internal directories.