Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const BeaconsTable + const IntfToBeaconTable + const RevocationsTable + const Schema + const SchemaVersion + type Backend struct + func New(path string, ia addr.IA) (*Backend, error) + func (b *Backend) BeginTransaction(ctx context.Context, opts *sql.TxOptions) (beacon.Transaction, error) + func (b *Backend) Close() error + func (b *Backend) SetMaxIdleConns(maxIdleConns int) + func (b *Backend) SetMaxOpenConns(maxOpenConns int) + func (e Backend) AllRevocations(ctx context.Context) (<-chan beacon.RevocationOrErr, error) + func (e Backend) BeaconSources(ctx context.Context) ([]addr.IA, error) + func (e Backend) CandidateBeacons(ctx context.Context, setSize int, usage beacon.Usage, src addr.IA) (<-chan beacon.BeaconOrErr, error) + func (e Backend) DeleteExpiredBeacons(ctx context.Context, now time.Time) (int, error) + func (e Backend) DeleteExpiredRevocations(ctx context.Context, now time.Time) (int, error) + func (e Backend) DeleteRevocation(ctx context.Context, ia addr.IA, ifid common.IFIDType) error + func (e Backend) DeleteRevokedBeacons(ctx context.Context, now time.Time) (int, error) + func (e Backend) InsertBeacon(ctx context.Context, b beacon.Beacon, usage beacon.Usage) (beacon.InsertStats, error) + func (e Backend) InsertRevocation(ctx context.Context, revocation *path_mgmt.SignedRevInfo) error