config

package
v0.0.0-...-5b49f20 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSigfoxAPIKey

func ExtractSigfoxAPIKey(fileName string) models.APIKeys

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 RetrieveSigfoxAPIKey

func RetrieveSigfoxAPIKey(c *gin.Context) models.APIKey

func ToContext

func ToContext(c Setter, conf *conf)

Types

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
JackTT - Gopher 🇻🇳