service

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NqmCachedTargetList *nqmCachedTargetListService
View Source
var NqmQueue *nqmAgentUpdateService
View Source
var ScheduleService = &scheduleService{
	Execute: ScheduleExecutor,
}

ScheduleService is designed to be a Execute function with namespace.

Functions

func CloseCachedTargetList

func CloseCachedTargetList()

func CloseNqmHeartbeat

func CloseNqmHeartbeat()

func InitCachedTargetList

func InitCachedTargetList(c *NqmCachedTargetListConfig)

func InitNqmHeartbeat

func InitNqmHeartbeat(c *commonQueue.Config)

func ScheduleExecutor

func ScheduleExecutor(schedule *model.Schedule, callback ScheduleCallback) (*model.OwlScheduleLog, error)

Types

type NqmCachedTargetListConfig

type NqmCachedTargetListConfig struct {
	Size int
	Dur  time.Duration
}

type ScheduleCallback

type ScheduleCallback func() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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