Documentation ¶
Index ¶
- func CreateChannel(v Channel) (err error)
- func CreateConnect(v Connect) (err error)
- func CreateExchange(v Exchange) (err error)
- func CreatePoper(v Poper) (err error)
- func CreatePusher(v Pusher) (err error)
- func CreateQueue(v Queue) (err error)
- func DeletePoper(name string) (err error)
- func DeletePusher(name string) (err error)
- func Fini() (err error)
- func Init(path string) (err error)
- func Pop(name string, callback func(MSG)) (err error)
- func Push(name string, key string, msg []byte) (err error)
- type Channel
- type Connect
- type EBind
- type Exchange
- type MSG
- type Poper
- type Pusher
- type QBind
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Channel ¶
type Channel struct { Name string `json:Name` Connect string `json:Connect` QosCount int `json:QosCount` QosSize int `json:QosSize` }
信道结构
type EBind ¶
type EBind struct { Destination string `json:Destination` Key string `json:Key` NoWait bool `json:NoWait` }
交换机绑定结构
type Exchange ¶
type Exchange struct { Name string `json:Name` Channel string `json:Channel` Type string `json:Type` Durable bool `json:Durable` AutoDeleted bool `json:AutoDeleted` Internal bool `json:Internal` NoWait bool `json:NoWait` Bind []EBind `json:Bind` Args map[string]interface{} `json:Args` }
交换机结构
type Poper ¶
type Poper struct { Name string `json:Name` QName string `json:QName` Channel string `json:Channel` Consumer string `json:Consumer` AutoACK bool `json:AutoACK` Exclusive bool `json:Exclusive` NoLocal bool `json:NoLocal` NoWait bool `json:NoWait` }
接收者配置
type Pusher ¶
type Pusher struct { Name string `json:Name` Channel string `json:Channel` Exchange string `json:Exchange` Key string `json:Key` Mandtory bool `json:Mandtory` Immediate bool `json:Immediate` ContentType string `json:ContentType` DeliveryMode uint8 `json:DeliveryMode` }
发送者配置
Click to show internal directories.
Click to hide internal directories.