Documentation ¶
Index ¶
- Constants
- type Data
- func (c *Data) APIServerInsecureSkipTLSVerify() bool
- func (c *Data) GetAuthServiceURL() string
- func (c *Data) GetFeaturesCacheControl() string
- func (c *Data) GetHTTPAddress() string
- func (c *Data) GetLogLevel() string
- func (c *Data) GetTogglesURL() string
- func (c *Data) IsDeveloperModeEnabled() bool
- func (c *Data) IsLogJSON() bool
- func (c *Data) String() string
Constants ¶
const ( // DevModeRsaPrivateKey for signing JWT Tokens in Dev Mode // ssh-keygen -f alm_rsa DevModeRsaPrivateKey = `` /* 1678-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data encapsulates the Viper configuration object which stores the configuration data in-memory.
func GetData ¶
GetData is a wrapper over NewData which reads configuration file path from the environment variable.
func NewData ¶
NewData creates a configuration reader object using a configurable configuration file path
func (*Data) APIServerInsecureSkipTLSVerify ¶
APIServerInsecureSkipTLSVerify returns if the server's certificate should be checked for validity. This will make your HTTPS connections insecure.
func (*Data) GetAuthServiceURL ¶
GetAuthServiceURL returns the Auth Service URL
func (*Data) GetFeaturesCacheControl ¶
GetFeaturesCacheControl returns the `cache-control` response header value to use when returning features
func (*Data) GetHTTPAddress ¶
GetHTTPAddress returns the HTTP address (as set via default, config file, or environment variable) that the alm server binds to (e.g. "0.0.0.0:8080")
func (*Data) GetLogLevel ¶
GetLogLevel returns the loggging level (as set via config file or environment variable)
func (*Data) GetTogglesURL ¶
GetTogglesURL returns Toggle service URL
func (*Data) IsDeveloperModeEnabled ¶
IsDeveloperModeEnabled returns if development related features (as set via default, config file, or environment variable), e.g. token generation endpoint are enabled