timer

package
v0.0.0-...-3c772d0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Heartbeat

func Heartbeat()

func Init

func Init()

func SgaWatch

func SgaWatch()

func Sleep

func Sleep()

Types

type AgSt

type AgSt struct {
	Name string `json:"n"`
	Ver  string `json:"v"`
	Stat int    `json:"s"`
}

Stat: 0: stopped, 1: started

type AgVer

type AgVer struct {
	Name string `json:"n"`
	Ver  string `json:"v"`
}

type AgVerSlice

type AgVerSlice []AgVer

func (AgVerSlice) Len

func (s AgVerSlice) Len() int

func (AgVerSlice) Less

func (s AgVerSlice) Less(i, j int) bool

func (AgVerSlice) Swap

func (s AgVerSlice) Swap(i, j int)

type AgentStat

type AgentStat struct {
	Name    string
	Ver     string
	Pid     int
	Cmdline string
	Stat    int
}

type HeartbeatRequest

type HeartbeatRequest struct {
	UUID   string `json:"id"`
	SgdVer string `json:"sgv"`
	Ags    []AgSt `json:"ags"`
}

type HeartbeatResponse

type HeartbeatResponse struct {
	Error  string  `json:"err"`
	SgdVer string  `json:"sgv"`
	Ags    []AgVer `json:"ags"`
}

Jump to

Keyboard shortcuts

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