Documentation
¶
Index ¶
- Constants
- type Channel
- type Config
- type Connection
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(f string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(f string, v ...interface{})
- func (l *Logger) Flag() int
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(f string, v ...interface{})
- func (l *Logger) Init()
- func (l *Logger) Level() int
- func (l *Logger) Prefix() string
- func (l *Logger) SetFlag(flag int)
- func (l *Logger) SetLevel(level int)
- func (l *Logger) SetPrefix(prefix string)
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(f string, v ...interface{})
- type RabbitPool
Constants ¶
View Source
const ( LOG_DEBUG int = iota LOG_INFO LOG_WARN LOG_ERROR )
View Source
const ( LOG_PREFIX = "[rabbitgo]" LOG_FORMAT = log.LstdFlags LOG_LEVEL = LOG_DEBUG )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
type Logger ¶
type RabbitPool ¶
type RabbitPool struct {
// contains filtered or unexported fields
}
Rabbit connection pool
func New ¶
func New(url string, config Config) *RabbitPool
func (*RabbitPool) Get ¶
func (r *RabbitPool) Get() (*Channel, error)
Randomly return an available channel
Click to show internal directories.
Click to hide internal directories.