env

package
v0.0.0-...-623004d Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppHomePath

func AppHomePath() string

AppHomePath returns path to app's home folder

func HomePath

func HomePath() string

HomePath returns path to users' home folder

func Initialize

func Initialize() error

Initialize prepares environment

Types

type ExtProxyConfig

type ExtProxyConfig struct {
	// Address is listening address
	Address string `json:"address"`

	// Port is listening port
	Port string `json:"port"`

	// Username is authorization username
	Username string `json:"username"`

	// Password is authorization password
	Password string `json:"password"`
}

ExtProxyConfig is configuration for external proxy

type ServerConfiguration

type ServerConfiguration struct {
	// Port is server port
	Port string `json:"port"`

	// ExtProxy is external proxy configuration
	ExtProxy *ExtProxyConfig `json:"proxy"`
}

ServerConfiguration is configuration for proxy server

func Configuration

func Configuration() *ServerConfiguration

Configuration returns configuration from config file

Jump to

Keyboard shortcuts

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