Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker 实现优雅退出
func (*Broker) Use ¶
func (b *Broker) Use(middlewares ...Middleware)
type BrokerOption ¶
type BrokerOption func(*Broker)
func WithShutdownCallbacks ¶
func WithShutdownCallbacks(cbs ...ShutdownCallback) BrokerOption
type HandleFunc ¶
type MessageQueue ¶
type MessageQueue struct {
// contains filtered or unexported fields
}
func (*MessageQueue) Close ¶
func (b *MessageQueue) Close() error
func (*MessageQueue) Send ¶
func (b *MessageQueue) Send(m *Msg) error
type Middleware ¶
type Middleware func(handleFunc HandleFunc) HandleFunc
type ShutdownCallback ¶
Click to show internal directories.
Click to hide internal directories.