conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package conf defines config options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() bool

Debug

func EtcdEndpoints

func EtcdEndpoints() string

func KmsStoreKind

func KmsStoreKind() kmstypes.StoreKind

func ListenAddr

func ListenAddr() string

ListenAddr return ListenAddr option.

func Load

func Load()

Load load config from envs.

Types

type Conf

type Conf struct {
	ListenAddr    string             `env:"LISTEN_ADDR" default:":3082"`
	Debug         bool               `env:"DEBUG" default:"false"`
	KmsStoreKind  kmstypes.StoreKind `env:"KMS_STORE_KIND" default:"ETCD"`
	EtcdEndpoints string             `env:"ETCD_ENDPOINTS" required:"false"`
}

Conf define config from envs.

Jump to

Keyboard shortcuts

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