config

package
v0.0.0-...-550bc53 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth0    auth0    `json:"AUTH0"`
	Folivora folivora `json:"FOLIVORA"`
}

Config is a struct representation of the root/secret config.json file.

func New

func New(path string) (*Config, error)

New reads in the config.json file present in the path variable and generates the struct representation.

type ErrorReadFile

type ErrorReadFile struct {
	// contains filtered or unexported fields
}

ErrorReadFile wraps errors returned by ioutil.ReadFile in the New function.

func (ErrorReadFile) Error

func (e ErrorReadFile) Error() string

type ErrorUnmarshalConfig

type ErrorUnmarshalConfig struct {
	// contains filtered or unexported fields
}

ErrorUnmarshalConfig wraps errors returned by json.Unmarshal in the New function.

func (ErrorUnmarshalConfig) Error

func (e ErrorUnmarshalConfig) Error() string

Jump to

Keyboard shortcuts

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