config

package
v0.0.0-...-49d137d Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSitePath        = "."
	DefaultPort     uint16 = 80
)

Variables

View Source
var DefaultIp = net.IPv4(0, 0, 0, 0)

Functions

func SetupFlags

func SetupFlags(v *Values)

func SiteRoot

func SiteRoot() string

Types

type Values

type Values struct {
	SitePath   string
	ConfigPath string
	ListenIp   net.IP
	ListenPort uint16

	TestMode bool
}

func Create

func Create() *Values

func (*Values) EnableTestMode

func (v *Values) EnableTestMode()

func (*Values) Load

func (v *Values) Load()

func (*Values) LoadAll

func (v *Values) LoadAll(a []string)

Jump to

Keyboard shortcuts

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