Documentation ¶
Index ¶
- func BuildConnectionDSN() string
- type PostgresStore
- func (s *PostgresStore) CountKVEntries(ctx context.Context, guildID string) (int, error)
- func (s *PostgresStore) DeleteKVEntry(ctx context.Context, guildID string, key string) (model.KVEntry, error)
- func (s *PostgresStore) GetKVEntry(ctx context.Context, guildID string, key string) (model.KVEntry, error)
- func (pgs *PostgresStore) GetMigrater() (*PostgresStoreMigrater, error)
- func (s *PostgresStore) IncreaseKVEntry(ctx context.Context, params model.KVEntryIncreaseParams) (model.KVEntry, error)
- func (s *PostgresStore) SearchKVEntries(ctx context.Context, guildID string, pattern string) ([]model.KVEntry, error)
- func (s *PostgresStore) SetKVEntry(ctx context.Context, entry model.KVEntry) error
- type PostgresStoreMigrater
- func (mig *PostgresStoreMigrater) Close() error
- func (mig *PostgresStoreMigrater) Down() error
- func (mig *PostgresStoreMigrater) Force(version int) error
- func (mig *PostgresStoreMigrater) List() ([]string, error)
- func (mig *PostgresStoreMigrater) SetLogger(logger migrate.Logger)
- func (mig *PostgresStoreMigrater) To(version uint) error
- func (mig *PostgresStoreMigrater) Up() error
- func (mig *PostgresStoreMigrater) Version() (uint, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConnectionDSN ¶
func BuildConnectionDSN() string
Types ¶
type PostgresStore ¶
func NewPostgresStore ¶
func NewPostgresStore() *PostgresStore
func (*PostgresStore) CountKVEntries ¶
func (*PostgresStore) DeleteKVEntry ¶
func (*PostgresStore) GetKVEntry ¶
func (*PostgresStore) GetMigrater ¶
func (pgs *PostgresStore) GetMigrater() (*PostgresStoreMigrater, error)
func (*PostgresStore) IncreaseKVEntry ¶
func (s *PostgresStore) IncreaseKVEntry(ctx context.Context, params model.KVEntryIncreaseParams) (model.KVEntry, error)
func (*PostgresStore) SearchKVEntries ¶
func (*PostgresStore) SetKVEntry ¶
type PostgresStoreMigrater ¶
type PostgresStoreMigrater struct {
// contains filtered or unexported fields
}
func (*PostgresStoreMigrater) Close ¶
func (mig *PostgresStoreMigrater) Close() error
func (*PostgresStoreMigrater) Down ¶
func (mig *PostgresStoreMigrater) Down() error
func (*PostgresStoreMigrater) Force ¶
func (mig *PostgresStoreMigrater) Force(version int) error
func (*PostgresStoreMigrater) List ¶
func (mig *PostgresStoreMigrater) List() ([]string, error)
func (*PostgresStoreMigrater) SetLogger ¶
func (mig *PostgresStoreMigrater) SetLogger(logger migrate.Logger)
func (*PostgresStoreMigrater) To ¶
func (mig *PostgresStoreMigrater) To(version uint) error
func (*PostgresStoreMigrater) Up ¶
func (mig *PostgresStoreMigrater) Up() error
Click to show internal directories.
Click to hide internal directories.