judge

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusMap = nmap.NewSafeMap()
)

Nodata Status Cache

Functions

func LastTs

func LastTs(key string) int64

func Start

func Start()

func StartJudgeCron

func StartJudgeCron()

func TurnNodata

func TurnNodata(key string, ts int64)

func TurnOk

func TurnOk(key string, ts int64)

Types

type NodataStatus

type NodataStatus struct {
	Key    string
	Status string // OK|NODATA
	Cnt    int
	Ts     int64
}

Nodata Status Struct

func GetAllNodataStatus

func GetAllNodataStatus() []*NodataStatus

func GetNodataStatus

func GetNodataStatus(key string) *NodataStatus

func NewNodataStatus

func NewNodataStatus(key string, status string, cnt int, ts int64) *NodataStatus

func (*NodataStatus) String

func (this *NodataStatus) String() string

Jump to

Keyboard shortcuts

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