Documentation ¶
Index ¶
- type DB
- type Migrator
- func (m *Migrator) CreateMigrationTable(ctx context.Context, db migrator.DB) error
- func (m *Migrator) CreateSchema(ctx context.Context, db migrator.DB) error
- func (m *Migrator) InsertMigrationRow(ctx context.Context, db migrator.DB, version uint32, fileName, sha string) error
- func (m *Migrator) Migrations() map[string]string
- func (m *Migrator) SelectLock(ctx context.Context, db migrator.DB) error
- func (m *Migrator) SelectMaxMigration(ctx context.Context, db migrator.DB) *sql.Row
- func (m *Migrator) SelectUnlock(ctx context.Context, db migrator.DB) error
- type Repository
- func (s *Repository) DeleteLeases(ctx context.Context, clientID string) error
- func (s *Repository) GetAndRefreshLeases(ctx context.Context, names []string, clientID string, ttl time.Duration) ([]lease.Info, error)
- func (s *Repository) InsertLease(ctx context.Context, clientID string, leaseName string, value int, ...) error
- func (s *Repository) SetLeaseStatus(ctx context.Context, clientID string, leaseName string, value int, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func (*Migrator) CreateMigrationTable ¶
func (*Migrator) CreateSchema ¶
func (*Migrator) InsertMigrationRow ¶
func (*Migrator) Migrations ¶
func (*Migrator) SelectLock ¶
func (*Migrator) SelectMaxMigration ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) DeleteLeases ¶
func (s *Repository) DeleteLeases(ctx context.Context, clientID string) error
func (*Repository) GetAndRefreshLeases ¶
func (*Repository) InsertLease ¶
Click to show internal directories.
Click to hide internal directories.