Documentation ¶
Index ¶
- type Database
- func (db *Database) Close() error
- func (db *Database) DeleteExpiredValues(ctx context.Context, cutoff time.Time) (int, error)
- func (db *Database) GetValue(ctx context.Context, meta drkey.SecretValueMeta, asSecret []byte) (drkey.SecretValue, error)
- func (db *Database) InsertValue(ctx context.Context, proto drkey.Protocol, epoch drkey.Epoch) error
- func (db *Database) SetMaxIdleConns(maxIdleConns int)
- func (db *Database) SetMaxOpenConns(maxOpenConns int)
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Backend drkey.SecretValueDB Metrics *Metrics }
func (*Database) DeleteExpiredValues ¶
func (*Database) GetValue ¶
func (db *Database) GetValue(ctx context.Context, meta drkey.SecretValueMeta, asSecret []byte) (drkey.SecretValue, error)
func (*Database) InsertValue ¶
func (*Database) SetMaxIdleConns ¶
func (*Database) SetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.