config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

config provides configuration setting from the provided yaml file.

Index

Constants

This section is empty.

Variables

View Source
var Config = &Configuration{
	KeyRingFilePath: "gpgkeys/secring.gpg",
	TLSCertFile:     "cert.crt",
	TLSKeyFile:      "cert.key",
	TLSDir:          "./cert/",
}

Config default configuration values

Functions

func Load

func Load()

Load configuration from the provided confioguration path.

Types

type Configuration

type Configuration struct {
	Port            string   `yaml:"port,omitempty"`
	Address         string   `yaml:"address,omitempty"`
	TLSCertFile     string   `yaml:"tls_cert_file,omitempty"`
	TLSKeyFile      string   `yaml:"tls_key_file,omitempty"`
	TLSDir          string   `yaml:"tls_directory,omitempty"`
	RevokedJWTs     []string `yaml:"revoked_tokens,omitempty"`
	JWTsecret       string   `yaml:"token_secret,omitempty"`
	KeyRingFilePath string   `yaml:"keyring_path,omitempty"`
	WebClientPath   string   `yaml:"web_client_path,omitempty"`
	GenAdminToken   bool
	NoServerStart   bool
	GenCert         bool
	ConfigPath      string
}

Jump to

Keyboard shortcuts

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