Documentation ¶
Index ¶
- func DefaultMux(r evdb.Scanner, w evdb.Store) 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 NewStoreHandler(s meter.Storer) http.Handler
- 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(store meter.Store, prefix string) 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 NewStoreHandler ¶
NewStoreHandler returns an HTTP endpoint for a Storer
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(store meter.Store, prefix string) http.HandlerFunc
StoreHandler returns an HTTP handler for a Store
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.