config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type AlertConfig

type AlertConfig struct {
	MaxAge       time.Duration `split_keys:"true" default:"2h"`
	HydrationDir string        `split_keys:"true" default:"/app/hydration"`
	Bluesky      BlueskyConfig
}

type BlueskyConfig

type BlueskyConfig struct {
	ID          string
	AppPassword string `split_keys:"true"`
}

type DBConfig

type DBConfig struct {
	Host     string `default:"pg.lab.verysmart.house"`
	User     string `default:"watchedsky-social"`
	Name     string `default:"watchedsky-social"`
	Password string `required:"true"`
}

type WatchedSkyConfig

type WatchedSkyConfig struct {
	DB     DBConfig `required:"true"`
	Alerts AlertConfig
}
var Config *WatchedSkyConfig

Jump to

Keyboard shortcuts

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