Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthToken ¶
func GetAuthToken() string
GetAuthToken returns the authentication token or an empty string if not set
Types ¶
type Config ¶
type Config struct {
APIEndpoints map[Environment]string
}
Config holds all configuration values
func (*Config) GetAPIEndpoint ¶
func (c *Config) GetAPIEndpoint(env Environment) string
GetAPIEndpoint returns the appropriate API endpoint for the given environment
type Environment ¶
type Environment string
Environment represents different deployment environments
const ( Production Environment = "production" Staging Environment = "staging" )
func ValidateEnvironment ¶
func ValidateEnvironment(env string) (Environment, bool)
ValidateEnvironment checks if the provided environment string is valid
Click to show internal directories.
Click to hide internal directories.