Documentation ¶
Index ¶
- func DefaultMux(db evdb.DB, events ...string) http.Handler
- func EncodeScanQuery(values url.Values, q *evdb.ScanQuery) error
- func EncodeTimeRange(values url.Values, q evdb.TimeRange)
- func InflateRequest(next http.Handler) http.HandlerFunc
- func MatchFieldsFromURL(values url.Values) (m evdb.MatchFields, err error)
- func ParseTime(v string) (time.Time, error)
- func QueryHandler(scanner evdb.Scanner) http.HandlerFunc
- func ScanQueryFromURL(values url.Values) (q evdb.ScanQuery, err error)
- func ScanQueryHandler(scan evdb.Scanner) http.HandlerFunc
- func ScanURL(baseURL string, q *evdb.ScanQuery) (string, error)
- func StoreHandler(s meter.Storer) http.HandlerFunc
- func TimeRangeFromURL(values url.Values) (t evdb.TimeRange, err error)
- func TimeRangeURL(rawURL string, t *evdb.TimeRange) (string, error)
- type HTTPClient
- type Querier
- type ScanQuerier
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMux ¶
DefaultMux creates an HTTP endpoint for a evdb.DB
func InflateRequest ¶
func InflateRequest(next http.Handler) http.HandlerFunc
InflateRequest middleware inflates request body
func MatchFieldsFromURL ¶
func MatchFieldsFromURL(values url.Values) (m evdb.MatchFields, err error)
func QueryHandler ¶
func QueryHandler(scanner evdb.Scanner) http.HandlerFunc
QueryHandler returns an HTTP endpoint for a QueryRunner
func ScanQueryFromURL ¶
ScanQueryFromURL parses a ScanQuery from a URL query
func ScanQueryHandler ¶
func ScanQueryHandler(scan evdb.Scanner) http.HandlerFunc
func StoreHandler ¶
func StoreHandler(s meter.Storer) http.HandlerFunc
StoreHandler returns an HTTP endpoint for an EventStore
Types ¶
type HTTPClient ¶
HTTPClient does HTTP requests
type ScanQuerier ¶
type ScanQuerier struct { URL string HTTPClient }
ScanQuerier runs scan queries over http
Click to show internal directories.
Click to hide internal directories.