Documentation ¶
Index ¶
- type BDKeeper
- func (kp *BDKeeper) Close() bool
- func (kp *BDKeeper) GetMessages(ctx context.Context, filter models.Filter, pagination models.Pagination) ([]models.Message, error)
- func (kp *BDKeeper) InsertMessage(ctx context.Context, message models.Message) (int, error)
- func (kp *BDKeeper) LoadMessages(ctx context.Context) (storage.StorageMessage, error)
- func (kp *BDKeeper) Ping(ctx context.Context) bool
- func (kp *BDKeeper) UpdateMessagesProcessed(ctx context.Context, ids []int) error
- type Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BDKeeper ¶
type BDKeeper struct {
// contains filtered or unexported fields
}
func NewBDKeeper ¶
func (*BDKeeper) GetMessages ¶
func (kp *BDKeeper) GetMessages(ctx context.Context, filter models.Filter, pagination models.Pagination) ([]models.Message, error)
GetMessages retrieves processed messages from the database based on the provided filter and pagination
func (*BDKeeper) InsertMessage ¶
InsertMessage inserts a new message into the database
func (*BDKeeper) LoadMessages ¶
LoadMessages loads messages from the database
Click to show internal directories.
Click to hide internal directories.