conf

package
v0.0.0-...-946f586 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 5 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 {
	Username         string `env:"KORDIS_USERNAME"`
	Password         string `env:"KORDIS_PASSWORD"`
	SchedulerCron    string `env:"SCHEDULER_CRON"`
	CalendarID       string `env:"CALENDAR_ID"`
	PlanningDaysSync int    `env:"PLANNING_DAYS_SYNC"`
	Mode             string `env:"MODE"`
}

func LoadEnv

func LoadEnv() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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