config

package
v0.0.0-...-c20906d Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "WS_"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Jobs     []Job     `koanf:"jobs"`
	Database db.Config `koanf:"database"`
}

func Default

func Default() Config

func New

func New(path string) Config

type Job

type Job struct {
	Name   string `koanf:"name"`
	Cron   string `koanf:"cron"`
	MaxRun int64  `koanf:"max_run"`
}

Jump to

Keyboard shortcuts

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