monitor

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: GPL-3.0 Imports: 10 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitNTPChecker

func InitNTPChecker(logger log15.Logger)

func LogDuration

func LogDuration(t string, name string, duration int64)

func LogEvent

func LogEvent(t string, name string)

func LogEventNum

func LogEventNum(t string, name string, num int)

func LogTime

func LogTime(t string, name string, tm time.Time)

func LogTimerConsuming added in v1.3.0

func LogTimerConsuming(tagsName []string, tm time.Time)

func Stat

func Stat() map[string]*Msg

func StatJson

func StatJson() string

Types

type Msg

type Msg struct {
	Cnt int64
	Sum int64
}

func (*Msg) String

func (self *Msg) String() string

Jump to

Keyboard shortcuts

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