Documentation ¶
Index ¶
- type Database
- func (db *Database) Close() error
- func (db *Database) DeleteExpiredASHostKeys(ctx context.Context, cutoff time.Time) (int, error)
- func (db *Database) DeleteExpiredHostASKeys(ctx context.Context, cutoff time.Time) (int, error)
- func (db *Database) DeleteExpiredHostHostKeys(ctx context.Context, cutoff time.Time) (int, error)
- func (db *Database) GetASHostKey(ctx context.Context, meta drkey.ASHostMeta) (drkey.ASHostKey, error)
- func (db *Database) GetHostASKey(ctx context.Context, meta drkey.HostASMeta) (drkey.HostASKey, error)
- func (db *Database) GetHostHostKey(ctx context.Context, meta drkey.HostHostMeta) (drkey.HostHostKey, error)
- func (db *Database) InsertASHostKey(ctx context.Context, key drkey.ASHostKey) error
- func (db *Database) InsertHostASKey(ctx context.Context, key drkey.HostASKey) error
- func (db *Database) InsertHostHostKey(ctx context.Context, key drkey.HostHostKey) 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 ¶
func (*Database) DeleteExpiredASHostKeys ¶
func (*Database) DeleteExpiredHostASKeys ¶
func (*Database) DeleteExpiredHostHostKeys ¶
func (*Database) GetASHostKey ¶
func (*Database) GetHostASKey ¶
func (*Database) GetHostHostKey ¶
func (db *Database) GetHostHostKey( ctx context.Context, meta drkey.HostHostMeta) (drkey.HostHostKey, error)
func (*Database) InsertASHostKey ¶
func (*Database) InsertHostASKey ¶
func (*Database) InsertHostHostKey ¶
func (*Database) SetMaxIdleConns ¶
func (*Database) SetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.