Documentation
¶
Index ¶
Constants ¶
View Source
const EnvAuthToken = "CC_STARTUP_AUTH_TOKEN"
EnvAuthToken overrides the configured HTTP endpoint auth token. It also accepts a "_FILE" variant naming a file that holds the token, so the token can come from a Docker or Kubernetes secret mount or from systemd LoadCredential; see util.SecretFromEnv for the precedence rules.
The name is prefixed CC_ because cc-lib is linked into several applications, whose environments it must not silently claim names in.
Variables ¶
This section is empty.
Functions ¶
func CCStartup ¶
func CCStartup(config json.RawMessage) error
Types ¶
type CCStartupConfig ¶
type CCStartupConfig struct {
SendTopology bool `json:"send_topology,omitempty"`
HttpEndpoint struct {
URL string `json:"url"`
AuthToken string `json:"auth_token"`
} `json:"http"`
NatsEndpoint struct {
URL string `json:"url"`
Subject string `json:"subject"`
NkeyFile string `json:"nkey_file"`
} `json:"nats"`
}
Click to show internal directories.
Click to hide internal directories.