Documentation
¶
Overview ¶
Package service provides some convenient service functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Monitor = service.NewMonitor( service.LogService(log.LevelInfo, "task", TaskService), service.NothingChecker(), nil)
Monitor is the default service monitor.
View Source
var TaskService = task.DefaultService
TaskService is the default task service.
Functions ¶
func RunTask ¶
RunTask runs the task function synchronously if TaskService is activated. Or, do nothing.
func SetChecker ¶ added in v0.42.0
SetChecker resets the checker of the monitor service.
func SetVipChecker ¶ added in v0.42.0
func SetVipChecker(vip string)
SetVipChecker is a convenient function to set the checker based on vip, which is equal to SetChecker(service.NewVipChecker(vip, "")).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.