Documentation
¶
Index ¶
Constants ¶
View Source
const ( OTLPEndpoint = "OTLP_ENDPOINT" OTLPBasicUsername = "OTLP_BASIC_USERNAME" OTLPBasicPassword = "OTLP_BASIC_PASSWORD" )
Variables ¶
View Source
var (
ErrInvalidVar = errors.New("invalid var")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServerAddr string `toml:"server_addr"`
ServerPort int `toml:"server_port"`
FrontendURL string `toml:"frontend_url"`
VoteStep float64 `toml:"vote_step"`
QrCodeSize int `toml:"qr_code_size"`
CleanOverTime int `toml:"clean_over_time"`
EnableTracing bool `toml:"enable_tracing"`
OTLPEndpoint string `toml:"otlp_endpoint"`
OTLPBasicUsername string `toml:"otlp_basic_username"`
OTLPBasicPassword string `toml:"otlp_basic_password"`
}
func LoadConfig ¶
func (*Config) BuildServerAddr ¶
func (*Config) GetQrCodeSize ¶
func (*Config) SetConfigFromEnv ¶
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
Click to show internal directories.
Click to hide internal directories.