client

package
v0.0.0-...-1af453a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 11 Imported by: 1

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

func (*MailSender) Send

func (ms *MailSender) Send(msg common.MailMsg) (error, bool)

Send impl mail sender

type MockSender

type MockSender struct{}

MockSender is mock sender implement

func (*MockSender) Send

func (ms *MockSender) Send(mail common.MailMsg) (error, bool)

Send impl the Sender interface

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL