monitor

package
v0.0.0-...-4d122b3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogReceiver

type LogReceiver struct {
	// contains filtered or unexported fields
}

func NewLogReceiver

func NewLogReceiver(port int, dbConn *db.Mysql, ipRoleMap map[string]string, mutex *sync.RWMutex) *LogReceiver

func (*LogReceiver) AddLog

func (lr *LogReceiver) AddLog(timeStr string, ip string, role string, logType string, msg string) (db.MysqlResult, error)

func (*LogReceiver) Run

func (lr *LogReceiver) Run()

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func New

func New(configFile string) *Monitor

func (*Monitor) Process

func (this *Monitor) Process(results []heart_beat.CheckResult)

func (*Monitor) Run

func (this *Monitor) Run()

Jump to

Keyboard shortcuts

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