cron

package
v0.0.0-...-f3f1d68 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context) (*Client, error)

func (*Client) AddFunc

func (client *Client) AddFunc(ctx context.Context, spec string, cmd func()) (EntryID64, error)

func (*Client) Remove

func (client *Client) Remove(id cron.EntryID)

func (*Client) Start

func (client *Client) Start(ctx context.Context)

func (*Client) Stop

func (client *Client) Stop()

type EntryID64

type EntryID64 int64

EntryID64 is the type of the id of an entry in the cron schedule.

Jump to

Keyboard shortcuts

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