Documentation ¶
Index ¶
- Constants
- func WithChannelsPoolSize(n int) func(opts *PoolOptions)
- func WithConnectionsCount(n int) func(opts *PoolOptions)
- func WithHeartbeat(d time.Duration) func(opts *PoolOptions)
- func WithLocale(locale string) func(opts *PoolOptions)
- func WithTLSConfig(t *tls.Config) func(opts *PoolOptions)
- type Consumer
- type DeliveryHandler
- type DeliveryHandlerFunc
- type Pool
- type PoolOptions
- type Pooler
- type Producer
Constants ¶
View Source
const ( DefaultHeartbeat = 10 * time.Second DefaultLocale = "en_US" DefaultClientConnectionsCount = 1 DefaultClientChannelsPoolSize = 20 )
Variables ¶
This section is empty.
Functions ¶
func WithChannelsPoolSize ¶ added in v0.8.0
func WithChannelsPoolSize(n int) func(opts *PoolOptions)
func WithConnectionsCount ¶ added in v0.8.0
func WithConnectionsCount(n int) func(opts *PoolOptions)
func WithHeartbeat ¶ added in v0.8.0
func WithHeartbeat(d time.Duration) func(opts *PoolOptions)
func WithLocale ¶ added in v0.8.0
func WithLocale(locale string) func(opts *PoolOptions)
func WithTLSConfig ¶ added in v0.8.0
func WithTLSConfig(t *tls.Config) func(opts *PoolOptions)
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type DeliveryHandler ¶
type DeliveryHandlerFunc ¶ added in v0.8.0
type Pool ¶ added in v0.8.0
type Pool struct {
// contains filtered or unexported fields
}
func NewPool ¶ added in v0.8.0
func NewPool(connStr string, name string, options ...func(opts *PoolOptions)) (*Pool, error)
func (*Pool) ReleaseAMQPChan ¶ added in v0.8.0
type PoolOptions ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.