Documentation
¶
Index ¶
- type Mock
- func (m *Mock) CreateMessage(message *db.Message) error
- func (m *Mock) DeleteAllThreads() error
- func (m *Mock) DeleteThread(threadID string) error
- func (m *Mock) ListLatestThreadsPaginated(offset, limit int) ([]*db.Thread, error)
- func (m *Mock) ListMessagesByThreadIDPaginated(threadID string, offset, limit int) ([]*db.Message, error)
- func (m *Mock) UpdateThreadName(threadID, name string) error
- func (m *Mock) UpsertThread(thread *db.Thread) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func (*Mock) DeleteAllThreads ¶
func (*Mock) DeleteThread ¶
func (*Mock) ListLatestThreadsPaginated ¶
func (*Mock) ListMessagesByThreadIDPaginated ¶
func (*Mock) UpdateThreadName ¶
type Store ¶
type Store interface {
ListLatestThreadsPaginated(offset, limit int) ([]*db.Thread, error)
ListMessagesByThreadIDPaginated(threadID string, offset, limit int) ([]*db.Message, error)
UpsertThread(thread *db.Thread) error
DeleteThread(threadID string) error
DeleteAllThreads() error
CreateMessage(message *db.Message) error
}
Click to show internal directories.
Click to hide internal directories.