Documentation
¶
Overview ¶
Package api exposes HTTP handlers for health, traces, analytics, and key APIs.
Index ¶
- func CostHandler(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 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 TracesHandler(store trace.TraceStore) http.Handler
- func UsageHandler(store trace.TraceStore) http.Handler
- type GatewayKeyAuditEvent
- type GatewayKeyAuditRecorder
- type HealthOptions
- type RouterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CostHandler ¶
func CostHandler(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 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 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
GatewayKeyStore configstore.GatewayKeyStore
GatewayAuthHeader string
GatewayKeyAuditRecorder GatewayKeyAuditRecorder
}
Click to show internal directories.
Click to hide internal directories.