Documentation ¶
Index ¶
- type MQ
- func (mq *MQ) Flush() error
- func (mq *MQ) FlushTimeout(d time.Duration) error
- func (mq *MQ) Publish(t string, pl []byte) error
- func (mq *MQ) QueueSubscribe(t, q string, cb MsgHandler) (*Subscription, error)
- func (mq *MQ) Subscribe(t string, cb MsgHandler) (*Subscription, error)
- func (mq *MQ) UnderlyingConn() *nats.Conn
- type Msg
- type MsgHandler
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQ ¶
type MQ struct {
// contains filtered or unexported fields
}
func (*MQ) QueueSubscribe ¶
func (mq *MQ) QueueSubscribe(t, q string, cb MsgHandler) (*Subscription, error)
func (*MQ) Subscribe ¶
func (mq *MQ) Subscribe(t string, cb MsgHandler) (*Subscription, error)
func (*MQ) UnderlyingConn ¶
type MsgHandler ¶
type MsgHandler func(msg *Msg)
type Subscription ¶
type Subscription struct {
nats.Subscription
}
Click to show internal directories.
Click to hide internal directories.