config

package
v0.0.0-...-c7bb042 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig() error

ReadConfig reads the configuration from the environment variables.

Types

type JwtConfig

type JwtConfig struct {
	Type   string
	Key    string
	Issuer string
}

JwtConfig is the configuration stored in the JWT_SECRET env var.

func (*JwtConfig) Decode

func (c *JwtConfig) Decode(value string) error

Decode the JwtConfig JSON object to the Struct

type Specification

type Specification struct {
	AuthJwtSecret JwtConfig `required:"true" split_words:"true"`
	DataURL       string    `required:"true" split_words:"true"`
	DataSecret    string    `required:"true" split_words:"true"`
}

Specification is the specification of the env-based config.

var Config Specification

Config holds the config values.

Jump to

Keyboard shortcuts

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