config

package
v0.0.0-...-9b17934 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 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 {
	LogLevel level.Level `default:"5"`
	Debug    bool        `default:"false"`

	SyncSchedule string `default:"0 0 0 * * *"`

	Database  DatabaseConfig
	Webserver WebserverConfig
	Oauth     OauthConfig
}

func Parse

func Parse() (Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	URL string `required:"true"`
}

type OauthConfig

type OauthConfig struct {
	ClientID      string `required:"true"`
	ClientSecret  string `required:"true"`
	PublicAddress string `required:"true"`
}

type WebserverConfig

type WebserverConfig struct {
	BindAddress string `default:"0.0.0.0:80"`
}

Jump to

Keyboard shortcuts

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