config

package
v0.0.0-...-20c7f3d Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(c context.Context) *conf

func GetBool

func GetBool(c context.Context, key string) bool

func GetInt

func GetInt(c context.Context, key string) int

func GetString

func GetString(c context.Context, key string) string

func New

func New(viper *viper.Viper) *conf

func ToContext

func ToContext(c Setter, conf *conf)

Types

type AwsConfiguration

type AwsConfiguration struct {
	AccessKey string
	SecretKey string
	Endpoint  string
	Region    string
	Bucket    string
}

func NewAwsConfigurationFromConfig

func NewAwsConfigurationFromConfig(config *viper.Viper) AwsConfiguration

func NewAwsConfigurationFromContext

func NewAwsConfigurationFromContext(c context.Context) AwsConfiguration

type Setter

type Setter interface {
	Set(string, interface{})
}

Jump to

Keyboard shortcuts

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