Documentation ¶
Index ¶
- Variables
- type Data
- type DataStore
- type DataStoreManager
- func (s *DataStoreManager) Count() (int, error)
- func (s *DataStoreManager) Delete(id int64) error
- func (s *DataStoreManager) DeleteAll(key string) error
- func (s *DataStoreManager) DeleteOlderThan(unixtime int, key string) error
- func (s *DataStoreManager) Insert(data Data) (*DataStore, error)
- func (s *DataStoreManager) Select(id int64) (*DataStore, error)
- func (s *DataStoreManager) SelectAll(key string) ([]DataStore, error)
- func (s *DataStoreManager) SelectLatest(key string) (*DataStore, error)
- func (s *DataStoreManager) Update(id int64, data Data) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStoreManager ¶
type DataStoreManager struct {
// contains filtered or unexported fields
}
func (*DataStoreManager) Count ¶
func (s *DataStoreManager) Count() (int, error)
func (*DataStoreManager) Delete ¶
func (s *DataStoreManager) Delete(id int64) error
func (*DataStoreManager) DeleteAll ¶
func (s *DataStoreManager) DeleteAll(key string) error
func (*DataStoreManager) DeleteOlderThan ¶
func (s *DataStoreManager) DeleteOlderThan(unixtime int, key string) error
func (*DataStoreManager) SelectAll ¶
func (s *DataStoreManager) SelectAll(key string) ([]DataStore, error)
func (*DataStoreManager) SelectLatest ¶
func (s *DataStoreManager) SelectLatest(key string) (*DataStore, error)
TODO: all these functions prob cause heap allocs since we return a pointer
Click to show internal directories.
Click to hide internal directories.