Documentation ¶
Index ¶
- func GetTimeseriesInfo(w http.ResponseWriter, r *http.Request)
- func Initialize() router.Routes
- func ReadAllTimeseries(w http.ResponseWriter, r *http.Request)
- func ReadTimeseries(w http.ResponseWriter, r *http.Request)
- func WriteTimeseries(w http.ResponseWriter, r *http.Request)
- type ByTime
- type Point
- type Points
- type Timeseries
- type TimeseriesStore
- type ValueStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeseriesInfo ¶
func GetTimeseriesInfo(w http.ResponseWriter, r *http.Request)
func Initialize ¶
func ReadAllTimeseries ¶
func ReadAllTimeseries(w http.ResponseWriter, r *http.Request)
func ReadTimeseries ¶
func ReadTimeseries(w http.ResponseWriter, r *http.Request)
func WriteTimeseries ¶
func WriteTimeseries(w http.ResponseWriter, r *http.Request)
Types ¶
type Point ¶
type Point struct { Time time.Time `json:"time"` Value float64 `json:"value"` Status ValueStatus `json:"state"` }
type Timeseries ¶
type Timeseries struct { Id int `json:"id"` Name string `json:"name"` Values Points `json:"values"` LastChanged time.Time `json:"lastChanged"` }
Timeseries represents a time series with a unique integer Id a name a list of Points and the time of the last write on this series.
type TimeseriesStore ¶
type ValueStatus ¶
type ValueStatus int
ValueStatus represents the status of a given point which could be valid or not valid
const ( VALID ValueStatus = iota NOT_VALID )
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/garyburd/redigo/internal/redistest
Package redistest contains utilities for writing Redigo tests.
|
Package redistest contains utilities for writing Redigo tests. |
_workspace/src/github.com/garyburd/redigo/redis
Package redis is a client for the Redis database.
|
Package redis is a client for the Redis database. |
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
|
Package context stores values shared during a request lifetime. |
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
|
Package gorilla/mux implements a request router and dispatcher. |
cmd
|
|
Click to show internal directories.
Click to hide internal directories.