Documentation ¶
Index ¶
- func ConnectToDatabase(logger *slog.Logger, path string) (*sqlx.DB, error)
- type BadgerKeyValueStore
- func (b *BadgerKeyValueStore) Close() error
- func (b *BadgerKeyValueStore) Delete(key string) error
- func (b *BadgerKeyValueStore) Get(key string) ([]byte, error)
- func (b *BadgerKeyValueStore) Increment(key string) (int, error)
- func (b *BadgerKeyValueStore) Keys(prefix string) ([]string, error)
- func (b *BadgerKeyValueStore) Set(key string, value []byte, ttl time.Duration) error
- type KeyValueStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadgerKeyValueStore ¶
type BadgerKeyValueStore struct {
// contains filtered or unexported fields
}
func NewBadgerKeyValueStore ¶
func NewBadgerKeyValueStore(path string) (*BadgerKeyValueStore, error)
func (*BadgerKeyValueStore) Close ¶
func (b *BadgerKeyValueStore) Close() error
func (*BadgerKeyValueStore) Delete ¶
func (b *BadgerKeyValueStore) Delete(key string) error
func (*BadgerKeyValueStore) Increment ¶
func (b *BadgerKeyValueStore) Increment(key string) (int, error)
Click to show internal directories.
Click to hide internal directories.