Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
DefaultLogger is default logger struct
func NewDefaultLogger ¶
func NewDefaultLogger(buffer int) *DefaultLogger
NewDefaultLogger construct a new default logger instance
func (*DefaultLogger) GetChannel ¶
func (l *DefaultLogger) GetChannel() chan<- *common.MailLog
GetChannel impl logger interface
type MailSender ¶
type MailSender struct {
// contains filtered or unexported fields
}
MailSender is true mail sender
func MustNewMailSender ¶
func MustNewMailSender(host string, port int, username, password string) *MailSender
MustNewMailSender return a new MailSender
type MongoLogger ¶
type MongoLogger struct {
// contains filtered or unexported fields
}
MongoLogger is struct of mongo driven logger
func NewMongoLogger ¶
func NewMongoLogger(url, db, table string, buffer int) *MongoLogger
NewMongoLogger construct a MongoLogger instance
func (*MongoLogger) GetChannel ¶
func (ml *MongoLogger) GetChannel() chan<- *common.MailLog
GetChannel impl logger interface
Click to show internal directories.
Click to hide internal directories.