config

package
v0.0.0-...-4892902 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFile   = "server-accessd.yaml"
	DefaultDatabasePath = "server-accessd.db"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	vault.ServerAccessSettings
	vault.AuthdSettings
	DatabasePath string `json:"database"`
}
var AppConfig Config

func LoadConfig

func LoadConfig(fileName string) (Config, error)

func LoadConfigFromFile

func LoadConfigFromFile(fileName string) (*Config, error)

func LoadConfigFromReader

func LoadConfigFromReader(r io.Reader) (*Config, error)

Jump to

Keyboard shortcuts

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