config

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 2 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 {
	Request SchedulerRequest `json:"request" yaml:"request" mapstructure:"request"`
}

func New

func New(provider configuration.Provider) (*Config, error)

func (*Config) Validate

func (conf *Config) Validate() error

type SchedulerRequest

type SchedulerRequest struct {
	Schedule SchedulerRequestSchedule `json:"schedule" yaml:"schedule" mapstructure:"schedule"`
}

func (*SchedulerRequest) Validate

func (conf *SchedulerRequest) Validate() error

type SchedulerRequestSchedule

type SchedulerRequestSchedule struct {
	Timeout int64 `json:"timeout" yaml:"timeout" mapstructure:"timeout"`
}

func (*SchedulerRequestSchedule) Validate

func (conf *SchedulerRequestSchedule) Validate() error

type Wrapper

type Wrapper struct {
	Scheduler Config `json:"scheduler" yaml:"scheduler" mapstructure:"scheduler"`
}

func (*Wrapper) Validate

func (conf *Wrapper) Validate() error

Jump to

Keyboard shortcuts

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