periodic

package
v0.0.0-...-5993489 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedHandler

type ChangedHandler func(ctx context.Context, network, newUrl string) error

ChangedHandler -

type Config

type Config struct {
	InfoBaseURL string `yaml:"info_base_url"`
	Schedule    string `yaml:"schedule"`
}

Config -

type GeneralWorker

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

GeneralWorker -

func NewGeneralWorker

func NewGeneralWorker(cfg Config, handler ChangedHandler) (*GeneralWorker, error)

NewGeneralWorker -

func (*GeneralWorker) Close

func (w *GeneralWorker) Close() error

Close -

func (*GeneralWorker) Start

func (w *GeneralWorker) Start(ctx context.Context)

Start -

func (*GeneralWorker) URLs

func (w *GeneralWorker) URLs() map[string]string

URLs -

type Worker

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

Worker -

func New

func New(cfg Config, network types.Network, handler ChangedHandler) (*Worker, error)

New -

func (*Worker) Close

func (w *Worker) Close() error

Close -

func (*Worker) Start

func (w *Worker) Start(ctx context.Context)

Start -

func (*Worker) URL

func (w *Worker) URL() string

URL -

Jump to

Keyboard shortcuts

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