config

package
v0.0.0-...-ecb7df7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config stores the configuration required for running Vault.

Configuration is provided in a YAML file which must be specified via an environment variable. It contains information regarding the DB, the server hosting, logging, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host        string        `yaml:"host"`
	Port        int           `yaml:"port"`
	Environment string        `yaml:"environment"`
	LogLevel    zapcore.Level `yaml:"log-level"`
}

Config holds the values within a YAML configuration file

func Read

func Read(path string) (*Config, error)

Read loads a YAML config file into a Config object.

Jump to

Keyboard shortcuts

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