Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextKey ¶
type ContextKey string
type Store ¶
type Store interface {
// WriteHeartBeats write the heartbeats to db.
WriteHeartBeats(username string, heartBeats []models.HeartBeatFrontModel) error
// QueryHeartBeats gets all heartbeats in a given time range.
QueryHeartBeats(begin time.Time, end time.Time) ([]models.HeartBeatFrontModel, error)
}
Store is the interface of time series data store.
func FromContext ¶
FromContext returns the Store associated with this context.
Click to show internal directories.
Click to hide internal directories.