Documentation ¶
Index ¶
- Variables
- type Channel
- type Client
- func (c *Client) Close()
- func (c *Client) Get() (*Conn, error)
- func (c *Client) Publish(queue string, routingKey string, body []byte, pubType string) (int64, error)
- func (c *Client) PublishDirect(queue string, routingKey string, body []byte) (int64, error)
- func (c *Client) PublishFanout(queue string, body []byte) (int64, error)
- type Config
- type Conn
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChannelClosed = errors.New("channel has been closed")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BrokerAddr string `json:"broker_addr"` KeepAlive int `json:"keepalive"` IdleConns int `json:"idle_conns"` MaxQueueSize int `json:"max_queue_size"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.