config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvName

func GetEnvName() string

func GetPathP2PRC

func GetPathP2PRC(Envname string) (string, error)

GetPathP2PRC Getting P2PRC Directory from environment variable

func SetEnvName

func SetEnvName(EnvName string) error

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

func (c *Config) WriteConfig() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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