config

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEFAULTE_CONTOROLLER = "controller.yottab.io:443"
	KEY_USER             = "yb-user"
	KEY_PASSWORD         = "yb-pass"
	KEY_TOKEN            = "token"
	KEY_HOST             = "host"
	APP_NAME             = "yb"
	CONFIG_NAME          = "config.json"
)

Variables

View Source
var (
	//ConfigManualAddress Get config file Path from the flag.
	ConfigManualAddress = ""
)

Functions

func ResetConfigFile

func ResetConfigFile() (err error)

ResetConfigFile wipes config file

func UpdateVarByConfigFile

func UpdateVarByConfigFile()

UpdateVarByConfigFile read config file into viper

Types

This section is empty.

Jump to

Keyboard shortcuts

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