config

package
v0.0.0-...-34482f3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogLevel

func GetLogLevel() (level log.Level)

func Read

func Read() error

Types

type Config

type Config struct {
	Loglevel string      `yaml:"loglevel"`
	Steam    SteamConfig `yaml:"steam"`
	Hooks    HookSecrets `yaml:"hooks"`
}
var (
	Conf *Config
)

func GetConf

func GetConf() *Config

type HookSecrets

type HookSecrets struct {
	ExampleSenderSimple string `yaml:"exampleSenderSimple"`
	ExampleSenderEmbeds string `yaml:"exampleSenderEmbeds"`
	RustNewItems        string `yaml:"rustNewItems"`
	GeekHackNews        string `yaml:"geekHackNews"`
}

type SteamConfig

type SteamConfig struct {
	ApiKey string `yaml:"apikey"`
}

Jump to

Keyboard shortcuts

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