config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(conf *Config)

Set set config to use globally.

func SetYAMLs added in v0.3.0

func SetYAMLs(yamlFiles map[string][]byte)

SetYAMLs set config from stage-yaml mapped argument.

Types

type Config

type Config struct {
	Stage        string
	Name         string
	Domain       string
	Port         int
	AllowOrigins []string
	YAML         map[string]interface{}
}

Config .

func Get

func Get() *Config

Get retrieves config.

Jump to

Keyboard shortcuts

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