Documentation ¶
Index ¶
Constants ¶
View Source
const ( Cache = "cache" InfluxDb = "influxdb" FileSrc SDKSource = "file" RemoteSrc SDKSource = "remote" CacheSrc SDKSource = "cache" Healthy HealthStatus = "healthy" Degraded HealthStatus = "degraded" NA HealthStatus = "n/a" Offline SDKMode = "offline" Online SDKMode = "online" )
Variables ¶
This section is empty.
Functions ¶
func InterceptSdk ¶
func InterceptSdk(sdkId string, reporter Reporter, transport http.RoundTripper) http.RoundTripper
Types ¶
type CacheStatus ¶
type CacheStatus struct { Status HealthStatus `json:"status"` Records []string `json:"records"` }
type HealthStatus ¶
type HealthStatus string
type Reporter ¶
type Reporter interface { ReportOk(component string, message string) ReportError(component string, err error) HttpHandler() http.HandlerFunc }
func NewNullReporter ¶
func NewNullReporter() Reporter
func NewReporter ¶
type SdkSourceStatus ¶
type SdkSourceStatus struct { Type SDKSource `json:"type"` Status HealthStatus `json:"status"` Records []string `json:"records"` }
type SdkStatus ¶
type SdkStatus struct { SdkKey string `json:"key"` Mode SDKMode `json:"mode"` Source SdkSourceStatus `json:"source"` }
type Status ¶
type Status struct { Status HealthStatus `json:"status"` SDKs map[string]*SdkStatus `json:"sdks"` Cache CacheStatus `json:"cache"` }
Click to show internal directories.
Click to hide internal directories.