funcs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(num string, nb int) bool

func CreateDB added in v0.3.1

func CreateDB(t g.Target, db *sql.DB)

func CurrentTimeMillis

func CurrentTimeMillis() int64

func GetRoot

func GetRoot() string

func NewState

func NewState() *g.State

func StartAlert

func StartAlert(config g.Config, db *sql.DB)

func StartPing

func StartPing(t g.Target, db *sql.DB)

func Timestr

func Timestr(time string) string

func ValidIP4

func ValidIP4(ipAddress string) bool

Types

type PingSt

type PingSt struct {
	SendPk   string
	RevcPk   string
	LossPk   string
	MinDelay string
	AvgDelay string
	MaxDelay string
}

func Ping

func Ping(Addr string) PingSt

Jump to

Keyboard shortcuts

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