config

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServicePort         int
	NodeHost            string
	XrayExecutablePath  string
	XrayAssetsPath      string
	SslCertFile         string
	SslKeyFile          string
	ApiKey              uuid.UUID
	ServiceProtocol     string
	Debug               bool
	GeneratedConfigPath string
	LogBufferSize       int
)

Functions

func GetEnv

func GetEnv(key, fallback string) string

func GetEnvAsBool

func GetEnvAsBool(name string, defaultVal bool) bool

func GetEnvAsInt

func GetEnvAsInt(name string, defaultVal int) int

func GetEnvAsUUID

func GetEnvAsUUID(name string) (uuid.UUID, error)

func SetEnvForTest

func SetEnvForTest(generatedConfigPath string, key uuid.UUID)

Warning: only use in tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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