Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nats ¶
type Nats struct {
// contains filtered or unexported fields
}
func NewNats ¶
func NewNats(url string, options ...NatsOption) *Nats
type NatsOption ¶
type NatsOption func(n *Nats)
func WithNatsConn ¶
func WithNatsConn(conn *nats.Conn) NatsOption
WithNatsConn 指定通过特定的连接创建
- 这将导致 WithNatsOptions 失效
func WithNatsOptions ¶
func WithNatsOptions(options ...nats.Option) NatsOption
WithNatsOptions 通过nats自带的可选项创建连接
func WithNatsSubject ¶
func WithNatsSubject(subject string) NatsOption
WithNatsSubject 通过对应的主题名称创建
- 默认为:MINOTAUR_CROSS
Click to show internal directories.
Click to hide internal directories.