Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractProjectIDFromToken ¶
ExtractProjectIDFromToken extracts the project ID from a token Token format: additionalData--projectID
func GetStoredClientID ¶
GetStoredClientID reads the client ID from the storage file
Types ¶
type ClientConfig ¶
type ClientConfig struct {
Name string `mapstructure:"name"`
BGP *bool `mapstructure:"bgp"` // Pointer to detect if explicitly set
Cloud string `mapstructure:"cloud"`
}
ClientConfig holds client-specific configuration
type Config ¶
type Config struct {
Server ServerConfig `mapstructure:"server"`
Logging LoggingConfig `mapstructure:"logging"`
Client ClientConfig `mapstructure:"client"`
}
Config holds all application configuration
func LoadConfig ¶
LoadConfig loads configuration from file
type LoggingConfig ¶
type LoggingConfig struct {
Level string `mapstructure:"level"`
Format string `mapstructure:"format"`
}
LoggingConfig holds logging configuration
Click to show internal directories.
Click to hide internal directories.