configuration

package
v0.0.0-...-180ba32 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileSource   = "file"
	RemoteSource = "remote"
)

Variables

This section is empty.

Functions

func Load

func Load() error

func LoadRemote

func LoadRemote(remote RemoteProvider) error

Types

type Configuration

type Configuration struct {
	Schedulers []Scheduler `mapstructure:"schedulers"`
}
var Config Configuration

type RemoteProvider

type RemoteProvider struct {
	Secure        bool
	Provider      string
	Endpoint      string
	Path          string
	SecretKeyring string
}

type Scheduler

type Scheduler struct {
	Job  string `mapstructure:"job"`
	Cron string `mapstructure:"cron"`
	Task struct {
		URL    string `mapstructure:"url"`
		Method string `mapstructure:"method"`
		Body   string `mapstructure:"body"`
		Header string `mapstructure:"header"`
	} `mapstructure:"task"`
}

Jump to

Keyboard shortcuts

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