config

package
v0.0.0-...-681265f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig()

ReadConfig populates config structs from the config file.

Types

type ConfDB

type ConfDB struct {
	User   string `yaml:"user"`
	Pass   string `yaml:"pass"`
	DBName string `yaml:"dbname"`
}
var DB ConfDB

type ConfPath

type ConfPath struct {
	Root           string `yaml:"root"`
	ImagesRelative string `yaml:"images-relative"`
	SiteUrl        string `yaml:"site-url"`
	Images         string
}
var Path ConfPath

type ConfTiming

type ConfTiming struct {
	PeriodSeconds int `yaml:"period-seconds"`
	CutoffSeconds int `yaml:"cutoff-seconds"`
	PruneDays     int `yaml:"prune-days"`
	Period        time.Duration
	CutoffLeeway  time.Duration
}
var Timing ConfTiming

type ConfTwitch

type ConfTwitch struct {
	ClientKey      string `yaml:"client-key"`
	AppAccessToken string `yaml:"app-access-token"`
}
var Twitch ConfTwitch

type ConfWebServer

type ConfWebServer struct {
	IP   string `yaml:"ip"`
	Port int    `yaml:"port"`
}
var WebServer ConfWebServer

Jump to

Keyboard shortcuts

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