funcs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 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, cnt string) PingSt

Jump to

Keyboard shortcuts

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