schedule

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Config    Config       `validate:"required"`
	Pipelines Pipelines    `validate:"required"`
	Log       *slog.Logger `validate:"required"`
}

func (Builder) Run

func (b Builder) Run(ctx context.Context) (*handler, error)

type Config

type Config struct {
	Users    []string      `` /* 155-byte string literal not displayed */
	Interval time.Duration `yaml:"interval,omitempty" default:"30m" doc:"Интервал синхронизации."`
}

type Pipelines

type Pipelines interface {
	Run(ctx context.Context, log *slog.Logger, username string) error
}

Jump to

Keyboard shortcuts

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