Documentation ¶
Index ¶
- type SqliteStore
- func (s *SqliteStore) Close() error
- func (s *SqliteStore) DeleteCal(id int64) error
- func (s *SqliteStore) GetCal(id int64) (*model.Cal, error)
- func (s *SqliteStore) GetMessage(id int64) (*model.Message, error)
- func (s *SqliteStore) ListCals(offset int, limit int) ([]model.Cal, error)
- func (s *SqliteStore) ListCalsForDevice(deviceID string) ([]model.Cal, error)
- func (s *SqliteStore) ListDeviceMessagesByDate(deviceID string, from int64, to int64) ([]model.Message, error)
- func (s *SqliteStore) ListMessages(offset int, limit int) ([]model.Message, error)
- func (s *SqliteStore) ListMessagesByDate(from int64, to int64) ([]model.Message, error)
- func (s *SqliteStore) PutCal(c *model.Cal) (int64, error)
- func (s *SqliteStore) PutMessage(m *model.Message) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqliteStore ¶
type SqliteStore struct {
// contains filtered or unexported fields
}
SqliteStore implements the store interface with Sqlite
func (*SqliteStore) GetMessage ¶
func (s *SqliteStore) GetMessage(id int64) (*model.Message, error)
GetMessage ...
func (*SqliteStore) ListCalsForDevice ¶
func (s *SqliteStore) ListCalsForDevice(deviceID string) ([]model.Cal, error)
ListCalsForDevice ...
func (*SqliteStore) ListDeviceMessagesByDate ¶
func (s *SqliteStore) ListDeviceMessagesByDate(deviceID string, from int64, to int64) ([]model.Message, error)
ListDeviceMessagesByDate ...
func (*SqliteStore) ListMessages ¶
ListMessages ...
func (*SqliteStore) ListMessagesByDate ¶
ListMessagesByDate ...
func (*SqliteStore) PutMessage ¶
func (s *SqliteStore) PutMessage(m *model.Message) (int64, error)
PutMessage ...
Click to show internal directories.
Click to hide internal directories.