etcd

package
v0.0.0-...-74a83f5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEtcdTaskSrv

func InitEtcdTaskSrv() error

初始化管理器

Types

type Task

type Task struct {
	Id     uint64    `json:"id"`
	Name   string    `json:"name"`
	Create time.Time `json:"create"`
}

type TaskEvent

type TaskEvent struct {
	Task  *Task
	Event common.TaskEventType
}

func BuildTaskEvent

func BuildTaskEvent(eventType common.TaskEventType, task *Task) (taskEvent *TaskEvent)

type TaskSrv

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

任务管理器

var (
	EtcdTaskSrv *TaskSrv
)

func (*TaskSrv) CloseTaskSrv

func (t *TaskSrv) CloseTaskSrv() error

关闭连接

Jump to

Keyboard shortcuts

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