config

package
v0.0.0-...-b4acfce Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0 Imports: 1 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 {
	Port string

	FbAppKey    string
	FbAppSecret string

	DbHost string
	DbUser string
	DbPass string
	DbName string
	DbPort string

	PassPercent float32 `envconfig:"optional"`
	InitDB      bool    `envconfig:"optional" default:"false"`
}

Config provide helm broker configuration Supported tags:

  • json: github.com/ghodss/yaml
  • envconfig: github.com/vrischmann/envconfig
  • default: github.com/mcuadros/go-defaults
  • valid github.com/asaskevich/govalidator

Example of valid tag: `valid:"alphanum,required"` Combining many tags: tags have to be separated by WHITESPACE: `json:"port" default:"8080" valid:"required"`

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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