config

package
v0.0.0-...-bedfa0c Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

View Source
const (
	BASDiscover_HomeDir      = ".basdis"
	BASDiscover_CFG_FileName = "basdis.json"
)

Variables

This section is empty.

Functions

func GetBASDisCFGFile

func GetBASDisCFGFile() string

func GetBASDisHomeDir

func GetBASDisHomeDir() string

func IsInitialized

func IsInitialized() bool

Types

type BasDiscover

type BasDiscover struct {
	MgtHttpPort   int    `json:"mgthttpport"`
	KeyPath       string `json:"keypath"`
	CmdListenPort string `json:"cmdlistenport"`
}

func GetBasDisCfg

func GetBasDisCfg() *BasDiscover

func LoadFromCfgFile

func LoadFromCfgFile(file string) *BasDiscover

func LoadFromCmd

func LoadFromCmd(initfromcmd func(cmdbc *BasDiscover) *BasDiscover) *BasDiscover

func PreLoad

func PreLoad() *BasDiscover

func (*BasDiscover) InitCfg

func (bc *BasDiscover) InitCfg() *BasDiscover

func (*BasDiscover) Load

func (bc *BasDiscover) Load() *BasDiscover

func (*BasDiscover) Save

func (bc *BasDiscover) Save()

Jump to

Keyboard shortcuts

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