Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("amqp", fx.Provide(NewAMQPConnection))
Functions ¶
This section is empty.
Types ¶
type Channel ¶ added in v0.2.0
type Configuration ¶
type Configuration struct {
Address string
ConsumerName string
TLS bool
Username string
Password string
}
func (Configuration) Dsn ¶
func (config Configuration) Dsn() string
type Connection ¶ added in v0.2.0
type Connection struct {
Amqp *amqp.Connection
Log *zap.Logger
// contains filtered or unexported fields
}
func NewAMQPConnection ¶
func NewAMQPConnection(config Configuration, l *zap.Logger) (*Connection, error)
func (*Connection) Channel ¶ added in v0.2.0
func (a *Connection) Channel() (*Channel, error)
func (*Connection) Reconnect ¶ added in v0.2.0
func (a *Connection) Reconnect() error
Click to show internal directories.
Click to hide internal directories.