gotask

package
v0.0.0-...-ebdab26 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(key string, value interface{})

type TaskCron

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

func New

func New(client *clientv3.Client, prefix string) *TaskCron

func (*TaskCron) Add

func (tc *TaskCron) Add(spec, key, value string, taskTimeout int, handler Handler) (err error)

func (*TaskCron) Close

func (tc *TaskCron) Close()

func (*TaskCron) Remove

func (tc *TaskCron) Remove(key, value string) error

func (*TaskCron) UpdateTime

func (tc *TaskCron) UpdateTime(key, value, spec string) error

Jump to

Keyboard shortcuts

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