Documentation ¶
Index ¶
- Variables
- type RedisRepo
- func (r *RedisRepo) CheckConnection(ctx context.Context)
- func (r *RedisRepo) Get(data string) (string, error)
- func (r *RedisRepo) GetAllKeys(ctx context.Context) []string
- func (r *RedisRepo) GetAllMessages(data string, ctx context.Context) ([]string, error)
- func (r *RedisRepo) Insert(data string) error
- func (r *RedisRepo) Remove(data string) error
- type Repository
- type SqliteRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoMessageError = errors.New("no messages in the queue")
)
Functions ¶
This section is empty.
Types ¶
type RedisRepo ¶
type RedisRepo struct { *redis.Client // contains filtered or unexported fields }
func NewRedisRepo ¶
func (*RedisRepo) CheckConnection ¶
func (*RedisRepo) GetAllMessages ¶
type Repository ¶
type SqliteRepo ¶
func NewSqliteRepo ¶
func NewSqliteRepo(dsnUri string, logger *slog.Logger) *SqliteRepo
func (*SqliteRepo) Insert ¶
func (s *SqliteRepo) Insert(data string) error
func (*SqliteRepo) Remove ¶
func (s *SqliteRepo) Remove(data string) error
Click to show internal directories.
Click to hide internal directories.