Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APIKeyEnvVar - Name of env variable to pull the cf api key APIKeyEnvVar = "CF_API_KEY" // APIEmailEnvVar - Name of env variable to pull the cf api email APIEmailEnvVar = "CF_API_EMAIL" )
Variables ¶
This section is empty.
Functions ¶
func GetCloudflareConfigPath ¶
func GetCloudflareConfigPath() string
GetCloudflareConfigPath - File path to config.json
func GetServerConfigPath ¶
func GetServerConfigPath() string
GetServerConfigPath - File path to config.json
Types ¶
type CloudflareConfig ¶
type CloudflareConfig struct {
// contains filtered or unexported fields
}
CloudflareConfig - Cloudflare configuration values
func GetCloudflareConfig ¶
func GetCloudflareConfig() *CloudflareConfig
GetCloudflareConfig - Get the cloudflare config
func (*CloudflareConfig) Credentials ¶
func (c *CloudflareConfig) Credentials() (string, string)
Credentials - Pulls the CF creds from either the local configuration database
or from the environment variables.
type DaemonConfig ¶
DaemonConfig - Configure daemon mode
type LogConfig ¶
type LogConfig struct { Level int `json:"level"` GRPCUnaryPayloads bool `json:"grpc_unary_payloads"` GRPCStreamPayloads bool `json:"grpc_stream_payloads"` }
LogConfig - Server logging config
type ServerConfig ¶
type ServerConfig struct { DaemonMode bool `json:"daemon_mode"` DaemonConfig *DaemonConfig `json:"daemon"` Logs *LogConfig `json:"logs"` }
ServerConfig - Server config
Click to show internal directories.
Click to hide internal directories.