detect

package
v1.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckCallBack

type HealthCheckCallBack struct {
	// contains filtered or unexported fields
}

HealthCheckCallBack 健康探测回调任务

func NewHealthCheckCallBack

func NewHealthCheckCallBack(cfg config.Configuration, supplier plugin.Supplier) (*HealthCheckCallBack, error)

NewHealthCheckCallBack 创建健康检查的回调

func (*HealthCheckCallBack) OnTaskEvent

func (c *HealthCheckCallBack) OnTaskEvent(event model.TaskEvent)

OnTaskEvent 任务事件回调

func (*HealthCheckCallBack) Process

func (c *HealthCheckCallBack) Process(
	taskKey interface{}, taskValue interface{}, lastProcessTime time.Time) model.TaskResult

Process 执行任务

Jump to

Keyboard shortcuts

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