Back to godoc.org

Package timer

v0.0.0-...-3c772d0
Latest Go to latest

The highest tagged major version is .

Published: Nov 8, 2018 | License: Apache-2.0 | Module: gitee.com/didiopensource/sgt.git

Index

func Heartbeat

func Heartbeat()

func Init

func Init()

func SgaWatch

func SgaWatch()

func Sleep

func Sleep()

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"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier