Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schedule

type Schedule struct {
	Namespace string
	Nats      *nats.Conn
	Js        nats.JetStreamContext
	Store     nats.ObjectStore
}

func New

func New(namespace string, nc *nats.Conn, js nats.JetStreamContext) (x *Schedule, err error)

func (*Schedule) Get

func (x *Schedule) Get(key string) (jobs []common.Job, err error)

Get 获取调度信息

func (*Schedule) Remove added in v1.0.5

func (x *Schedule) Remove(key string) (err error)

Remove 移除调度

func (*Schedule) Set added in v1.0.5

func (x *Schedule) Set(key string, jobs ...common.Job) (err error)

Set 设置调度

Jump to

Keyboard shortcuts

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