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

client

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpJob

func HttpJob(spec string, option model.HttpJob) (job *api.Job, err error)

Types

type Schedule

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

func New

func New(addr string, opts ...grpc.DialOption) (x *Schedule, err error)

func (*Schedule) Close

func (x *Schedule) Close() error

func (*Schedule) Delete

func (x *Schedule) Delete(ctx context.Context, key string) (err error)

func (*Schedule) Get

func (x *Schedule) Get(ctx context.Context, keys []string) (data map[string]*api.Schedule, err error)

func (*Schedule) Put

func (x *Schedule) Put(ctx context.Context, key string, jobs ...*api.Job) (err error)

Jump to

Keyboard shortcuts

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