config

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	ConnectionString string `mapstructure:"uri"`
	Database         string `mapstructure:"database"`
	MigrationsPath   string `mapstructure:"migrations_path"`
}

Postgres specific options

type Secrets

type Secrets struct {
	SecretsKey      `mapstructure:"secretskey"`
	Service         `mapstructure:"service"`
	Postgres        `mapstructure:"postgres"`
	certs.TLSConfig `mapstructure:"tls"`
}

Secrets service specific config options

type SecretsKey

type SecretsKey struct {
	Key  string `mapstructure:"key"`
	File string `mapstructure:"file"`
}

SecretsKey options

type Service

type Service struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	LogLevel string `mapstructure:"log_level"`
}

Service is a base config options struct for all services

func (*Service) SetLogLevel

func (s *Service) SetLogLevel()

SetLogLevel sets the log level for the service

Jump to

Keyboard shortcuts

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