config

package
v0.0.0-...-ee2a6a4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

View Source
const (
	CONFIG_FILE_NAME = ".bmp_config"
	CONFIG_PATH      = "~/" + CONFIG_FILE_NAME
)

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(path string) *config

Types

type Config

type Config interface {
	Path() string
	LoadConfig() (ConfigInfo, error)
	SaveConfig(configInfo ConfigInfo) error
}

type ConfigInfo

type ConfigInfo struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	TargetUrl string `json:"target_url"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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