Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChannelPub = 1 << iota ChannelSub ChannelRPC ChannelRPCServer AllChannel = ChannelPub | ChannelSub | ChannelRPC | ChannelRPCServer )
Variables ¶
View Source
var (
ErrorTimeout = errors.New("timeout")
)
Functions ¶
This section is empty.
Types ¶
type RPCHandler ¶
type RabbitMQ ¶
type RabbitMQ struct {
// contains filtered or unexported fields
}
一个rabbit完整的Broker
func NewRabbitMQ ¶
func NewRabbitMQ(cfg *RabbitMQConfig, rpcHandler RPCHandler) *RabbitMQ
新建rabbot通道,参数需要给定
func (*RabbitMQ) SendMessage ¶
异步发送消息 异步发送消息
Click to show internal directories.
Click to hide internal directories.