config

package
v0.0.0-...-3928e1a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: BSD-4-Clause 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 {
	Title      string
	Root       string
	Debug      bool
	SessionKey string
	Database   struct {
		Username string
		Password string
		Name     string
		Host     string
		Port     int
		URI      string
	}
	Session struct {
		Key string
	}
}

Config specifies the available configuration values

var Conf Config

Conf is the loaded configuration

func LoadConfig

func LoadConfig(f string) (Config, error)

LoadConfig loads a config from a file

func SetupConfig

func SetupConfig(stream []byte) Config

SetupConfig converts a byte stream to a Config object

Jump to

Keyboard shortcuts

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