Documentation
¶
Overview ¶
Package pg abstracts the storage layer and provides a simple interface to work with.
Index ¶
- type Store
- func (s *Store) AggregateStats(t time.Time) error
- func (s *Store) CurrentStats() (model.Stats, error)
- func (s *Store) Events() <-chan model.Event
- func (s *Store) LatestDailyStats() (model.Stats, error)
- func (s *Store) Run() error
- func (s *Store) Search(filter string) ([]model.Event, error)
- func (s *Store) Stats(r model.StatsRange) (model.CombinedStats, error)
- func (s *Store) Stop() error
- func (s *Store) TxInfo(id string) (model.TxInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Stats ¶
func (s *Store) Stats(r model.StatsRange) (model.CombinedStats, error)
Stats returns stats for the given time range.
Click to show internal directories.
Click to hide internal directories.