Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSet ¶
DataSet JSON:
{ "name": "metric_name", "tags": {"tag1": "val", "tag2": "val"}, "dps": [ ["t": 123123, v: 0], ["t": 123124, v: 0] ] }
type Store ¶
type Store interface { SaveDataSet(ds DataSet) error GetDataSet(q DataQuery) ([]DataSet, error) CreateMetric(m Metric) error GetMetric(metric string) (Metric, error) UpdateMetric(m Metric) error DeleteMetric(metric string) error }
An assumption is that SaveDataSet() and GetDataSet() will be involving
* stucts of small enough size that using copies rather than pointers is * appropriate.
type UnixTime ¶
func NewUnixTime ¶
func NewUnixTime(v interface{}) *UnixTime
func (UnixTime) MarshalJSON ¶
MarshalJSON turns our time.Time back into an int
func (*UnixTime) UnmarshalJSON ¶
UnmarshalJSON is the method that satisfies the Unmarshaller interface
Click to show internal directories.
Click to hide internal directories.