cfg

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReleaseTag = "development"

Functions

This section is empty.

Types

type Config

type Config struct {
	Runtime struct {
		Release string
	}
	Session struct {
		SecretKey string `yaml:"key"`
	}
	Db struct {
		Host string
		Port int
		User string
		Pass string
		Name string
	}
	OAuth struct {
		Token  string
		Secret string
	}
	App struct {
		UpdateStats bool `yaml:"update_stats"`
		AdminOnly   bool `yaml:"admin_only"`
	}
	Wikipedia struct {
		Username string `yaml:"username"`
		Password string `yaml:"password"`
	}
}

func LoadConfigFromDisk

func LoadConfigFromDisk(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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