config

package
v0.0.0-...-f3c9c56 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDBPath = "boast.db"

Functions

func CmdInit

func CmdInit()

func Init

func Init(s *httptest.Server, addr, debugAddr string)

func SetDBPath

func SetDBPath(path string)

Types

type JsonConfig

type JsonConfig struct {
	DebugAddr string   `json:"debug_addr"`
	List      []RvsPxy `json:"list"`
	// it'll persist to DB, if DBPath is not empty
	DBPath string `json:"db_path"`
}
var Config JsonConfig

type RvsPxy

type RvsPxy struct {
	URL  string `json:"url"`
	Addr string `json:"addr"`
}

Jump to

Keyboard shortcuts

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