config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ConfigPrefix is envconfig prefix path
	ConfigPrefix = "orangeapi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FirebaseConfiguration

type FirebaseConfiguration struct {
	FirebaseURL  string `envconfig:"firebase_url" default:"https://saas-orangesys-io.firebaseio.com/"`
	FirebaseAuth string `envconfig:"firebase_auth" default:""`
}

FirebaseConfiguration init firebase configuration struct

func LoadFirebaseConfig

func LoadFirebaseConfig() (*FirebaseConfiguration, error)

LoadFirebaseConfig load firebase configuration with environment values

type KongConfiguration

type KongConfiguration struct {
	KongAdminHost string `envconfig:"kong_host" default:"localhost"`
	KongAdminPort string `envconfig:"kong_port" default:"8001"`
	KongAdminURL  string `envconfig:"kong_url" default:"http://127.0.0.1:8001/"`
}

KongConfiguration init kong configuration struct

func LoadKongConfig

func LoadKongConfig() (*KongConfiguration, error)

LoadKongConfig load kong configuration with environment values

Jump to

Keyboard shortcuts

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