Documentation
¶
Overview ¶
Package api exposes HTTP handlers for health, diagnostics, traces, analytics, and key APIs.
Index ¶
- func CostHandler(store trace.TraceStore) http.Handler
- func ErrorsHandler(store trace.TraceStore) http.Handler
- func GatewayKeyDetailHandler(store configstore.GatewayKeyStore, auditRecorder GatewayKeyAuditRecorder) http.Handler
- func GatewayKeysHandler(store configstore.GatewayKeyStore, auditRecorder GatewayKeyAuditRecorder) http.Handler
- func HealthHandler(options HealthOptions) http.Handler
- func KeysHandler(store trace.TraceStore) http.Handler
- func LatencyHandler(store trace.TraceStore) http.Handler
- func ModelsHandler(store trace.TraceStore) http.Handler
- func NewRouter(options RouterOptions) http.Handler
- func SummaryHandler(store trace.TraceStore) http.Handler
- func TraceDetailHandler(store trace.TraceStore) http.Handler
- func TracePipelineDiagnosticsHandler(options TracePipelineDiagnosticsOptions) http.Handler
- func TracesHandler(store trace.TraceStore) http.Handler
- func UsageHandler(store trace.TraceStore) http.Handler
- type GatewayKeyAuditEvent
- type GatewayKeyAuditRecorder
- type HealthOptions
- type RouterOptions
- type TracePipelineDiagnosticsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CostHandler ¶
func CostHandler(store trace.TraceStore) http.Handler
func ErrorsHandler ¶ added in v1.1.8
func ErrorsHandler(store trace.TraceStore) http.Handler
func GatewayKeyDetailHandler ¶
func GatewayKeyDetailHandler(store configstore.GatewayKeyStore, auditRecorder GatewayKeyAuditRecorder) http.Handler
func GatewayKeysHandler ¶
func GatewayKeysHandler(store configstore.GatewayKeyStore, auditRecorder GatewayKeyAuditRecorder) http.Handler
func HealthHandler ¶
func HealthHandler(options HealthOptions) http.Handler
func KeysHandler ¶
func KeysHandler(store trace.TraceStore) http.Handler
func LatencyHandler ¶ added in v1.1.8
func LatencyHandler(store trace.TraceStore) http.Handler
func ModelsHandler ¶
func ModelsHandler(store trace.TraceStore) http.Handler
func NewRouter ¶
func NewRouter(options RouterOptions) http.Handler
func SummaryHandler ¶
func SummaryHandler(store trace.TraceStore) http.Handler
func TraceDetailHandler ¶
func TraceDetailHandler(store trace.TraceStore) http.Handler
func TracePipelineDiagnosticsHandler ¶ added in v1.1.7
func TracePipelineDiagnosticsHandler(options TracePipelineDiagnosticsOptions) http.Handler
func TracesHandler ¶
func TracesHandler(store trace.TraceStore) http.Handler
func UsageHandler ¶
func UsageHandler(store trace.TraceStore) http.Handler
Types ¶
type GatewayKeyAuditEvent ¶
type GatewayKeyAuditRecorder ¶
type GatewayKeyAuditRecorder func(r *http.Request, event GatewayKeyAuditEvent)
type HealthOptions ¶
type RouterOptions ¶
type RouterOptions struct {
AppVersion string
Store trace.TraceStore
StorageDriver string
StoragePath string
TracePipelineReader trace.TracePipelineDiagnosticsReader
GatewayKeyStore configstore.GatewayKeyStore
GatewayAuthHeader string
GatewayKeyAuditRecorder GatewayKeyAuditRecorder
}
type TracePipelineDiagnosticsOptions ¶ added in v1.1.7
type TracePipelineDiagnosticsOptions struct {
Reader trace.TracePipelineDiagnosticsReader
StoreDriver string
}
Click to show internal directories.
Click to hide internal directories.