Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + const BackendKey + const ConnectionKey + func NewBeaconCleaner(s Store) *cleaner.Cleaner + func NewRevocationCleaner(s Store) *cleaner.Cleaner + type Backend string + const BackendSqlite + type BeaconDBConf map[string]string + func (cfg *BeaconDBConf) Backend() Backend + func (cfg *BeaconDBConf) ConfigName() string + func (cfg *BeaconDBConf) Connection() string + func (cfg *BeaconDBConf) InitDefaults() + func (cfg *BeaconDBConf) MaxIdleConns() (int, bool) + func (cfg *BeaconDBConf) MaxOpenConns() (int, bool) + func (cfg *BeaconDBConf) New(ia addr.IA) (beacon.DB, error) + func (cfg *BeaconDBConf) NewCoreStore(ia addr.IA, policies beacon.CorePolicies) (Store, error) + func (cfg *BeaconDBConf) NewStore(ia addr.IA, policies beacon.Policies) (Store, error) + func (cfg *BeaconDBConf) Sample(dst io.Writer, path config.Path, ctx config.CtxMap) + func (cfg *BeaconDBConf) Validate() error + type Store interface + BeaconsToPropagate func(ctx context.Context) (<-chan beacon.BeaconOrErr, error) + Close func() error + DeleteExpiredBeacons func(ctx context.Context) (int, error) + DeleteExpiredRevocations func(ctx context.Context) (int, error) + DeleteRevocation func(ctx context.Context, ia addr.IA, ifid common.IFIDType) error + InsertBeacon func(ctx context.Context, beacon beacon.Beacon) (beacon.InsertStats, error) + InsertRevocations func(ctx context.Context, revocations ...*path_mgmt.SignedRevInfo) error + MaxExpTime func(policyType beacon.PolicyType) spath.ExpTimeType + PreFilter func(beacon beacon.Beacon) error + SegmentsToRegister func(ctx context.Context, segType proto.PathSegType) (<-chan beacon.BeaconOrErr, error) + UpdatePolicy func(ctx context.Context, policy beacon.Policy) error