updater

package
v0.0.0-...-e7d128e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Cron string `hcl:"cron"`

	Request requester.Config `hcl:"request,block"`
}

type Updater

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

func New

func New(cfg *Config) *Updater

func (*Updater) RunTask

func (u *Updater) RunTask() error

func (*Updater) Schedule

func (u *Updater) Schedule(scheduler gocron.Scheduler) (gocron.Job, error)

Jump to

Keyboard shortcuts

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