config

package
v0.0.0-...-90af18b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPath

func CleanPath(str string) string

func ConfigureWizard

func ConfigureWizard() error

Types

type Config

type Config struct {
	NodeId         string `yaml:"NodeId" json:"nodeId"`
	WebPort        string `yaml:"WebPort" json:"webPort"`
	LocalPort      string `yaml:"LocalPort" json:"localPort"`
	ShareDirectory string `yaml:"ShareDirectory" json:"sharedDirectory"`
	ConfigFile     string `yaml:"-" json:"-"`
	Debug          bool   `yaml:"-" json:"-"`
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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