Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elasticsearch ¶
type Elasticsearch struct { Addresses []string `koanf:"addresses"` // A list of Elasticsearch nodes to use. Username string `koanf:"username"` // Username for HTTP Basic Authentication. Password string `koanf:"password"` // Password for HTTP Basic Authentication. CloudID string `koanf:"cloud_id"` // Endpoint for the Elastic Service (https://elastic.co/cloud). APIKey string `koanf:"api_key"` // Base64-encoded token for authorization; if set, overrides username/password and service token. ServiceToken string `koanf:"service_token"` // Service token for authorization; if set, overrides username/password. CertificateFingerprint string `koanf:"certificate_fingerprint"` // SHA256 hex fingerprint given by Elasticsearch on first launch. }
Elasticsearch is the config of Elasticsearch
type HTTPConfig ¶
type HTTPConfig struct { Bind string `koanf:"bind"` Metrics metric `koanf:"metrics"` Elasticsearch Elasticsearch `koanf:"elasticsearch"` Upstreams struct { Main httpUpstream `koanf:"main"` Test httpUpstream `koanf:"test"` } `koanf:"upstreams"` Worker worker `koanf:"worker"` SkipJSONPaths []string `koanf:"skip_json_paths"` TestProbability uint64 `koanf:"test_probability"` LogResponsePayload bool `koanf:"log_response_payload"` }
HTTPConfig represent config of the Proksi HTTP.
var ( // HTTP is the config for Proksi HTTP HTTP *HTTPConfig )
func LoadHTTP ¶ added in v0.0.1
func LoadHTTP(path string) *HTTPConfig
LoadHTTP function will load the file located in path and return the parsed config for ProksiHTTP. This function will panic on errors
Click to show internal directories.
Click to hide internal directories.