Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvName ¶
func GetEnvName() string
func GetPathP2PRC ¶
GetPathP2PRC Getting P2PRC Directory from environment variable
func SetEnvName ¶
SetEnvName Sets the environment name This is to ensure that the Path of your project is detected from your environment variable This is useful when extending the use case of P2PRC
Types ¶
type Config ¶
type Config struct {
MachineName string
IPTable string
DockerContainers string
DefaultDockerFile string
SpeedTestFile string
IPV6Address string
PluginPath string
TrackContainersPath string
ServerPort string
GroupTrackContainersPath string
FRPServerPort string
BehindNAT string
CustomConfig interface{}
}
func ConfigInit ¶
func ConfigInit(defaultsParameter map[string]interface{}, CustomConfig interface{}, envNameOptional ...string) (*Config, error)
ConfigInit Pass environment name as an optional parameter
func (*Config) WriteConfig ¶
Click to show internal directories.
Click to hide internal directories.