config

package
v0.0.0-...-6aec01b Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config provides configuration for the keeper service.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSecretNotSet = errors.New("secret key required")
	ErrCrtKeyNotSet = errors.New("certificate key required")
	ErrCrtNotSet    = errors.New("service certificate required")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Address     string
	DatabaseURI creds.ConnURI
	Secret      creds.Password
	CrtPath     string
	KeyPath     string
	LogLevel    string
}

func New

func New() (*Config, error)

New create application config by reading environment variables and commandline flags. The environment variables has first priority.

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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