Documentation ¶
Index ¶
- func DB(baseURL string, client HTTPClient, events ...string) (meter.DB, error)
- func Handler(db meter.DB, events ...string) http.HandlerFunc
- func InflateRequest(next http.Handler) http.HandlerFunc
- func ParseQuery(values url.Values) (q meter.Query, err error)
- func ParseTime(v string) (time.Time, error)
- func QueryHandler(querier meter.Querier) http.HandlerFunc
- func QueryValues(q *meter.Query) url.Values
- func StoreHandler(s meter.Storer) http.HandlerFunc
- type HTTPClient
- type Querier
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DB ¶
func DB(baseURL string, client HTTPClient, events ...string) (meter.DB, error)
DB connects to a remote meter.DB over HTTP
func Handler ¶
func Handler(db meter.DB, events ...string) http.HandlerFunc
Handler creates an HTTP endpoint for a meter.DB
func InflateRequest ¶
func InflateRequest(next http.Handler) http.HandlerFunc
InflateRequest middleware inflates request body
func ParseQuery ¶
ParseQuery sets query values from a URL query
func QueryHandler ¶
func QueryHandler(querier meter.Querier) http.HandlerFunc
QueryHandler returns an HTTP endpoint for a QueryRunner
func StoreHandler ¶
func StoreHandler(s meter.Storer) http.HandlerFunc
StoreHandler returns an HTTP endpoint for an EventStore
Types ¶
type HTTPClient ¶
HTTPClient does HTTP requests
Click to show internal directories.
Click to hide internal directories.