config

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-2.0, GPL-3.0 Imports: 2 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 {
	Font                  string
	GoogleClientID        string
	GoogleClientSecret    string
	GoogleCallbackHandler string
	IPInfoIoToken         string
}

Config represents the configuration of the server

func LoadConfig

func LoadConfig() *Config

LoadConfig loads the configuration from the file `./config.json` if the file doesn't exist the program crashes

Jump to

Keyboard shortcuts

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