core

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

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

Go to latest
Published: Jan 6, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VerString string
)

Functions

func ConfigPath

func ConfigPath() (string, error)

func CreateHttpAuth

func CreateHttpAuth(file string, name string, password string) error

func EnsurePath

func EnsurePath(pathName string) error

func GetFreePort

func GetFreePort() (string, error)

func GetRandom

func GetRandom(n int) string

func GetUser

func GetUser(username string) (*user.User, error)

func Homedir

func Homedir() (string, error)

func LoadConfig

func LoadConfig(filePath string, conf interface{}) error

func LoadHomeConfig

func LoadHomeConfig(fileName string, conf interface{}) error

func PortFree

func PortFree(port string) bool

func WriteConfig

func WriteConfig(fileName string, conf interface{}) error

Types

type Config

type Config struct {
}

type MainConfig

type MainConfig struct {
	Config
	ApiKey    string `json:"api_key"`
	ApiSecret string `json:"api_secret"`
	Port      string `json:"port"`
}

Jump to

Keyboard shortcuts

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