Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + type MockDB struct + func NewMockDB(ctrl *gomock.Controller) *MockDB + func (m *MockDB) AllRevocations(arg0 context.Context) (<-chan beacon.RevocationOrErr, error) + func (m *MockDB) BeaconSources(arg0 context.Context) ([]addr.IA, error) + func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (beacon.Transaction, error) + func (m *MockDB) CandidateBeacons(arg0 context.Context, arg1 int, arg2 beacon.Usage, arg3 addr.IA) (<-chan beacon.BeaconOrErr, error) + func (m *MockDB) Close() error + func (m *MockDB) DeleteExpiredBeacons(arg0 context.Context, arg1 time.Time) (int, error) + func (m *MockDB) DeleteExpiredRevocations(arg0 context.Context, arg1 time.Time) (int, error) + func (m *MockDB) DeleteRevocation(arg0 context.Context, arg1 addr.IA, arg2 common.IFIDType) error + func (m *MockDB) DeleteRevokedBeacons(arg0 context.Context, arg1 time.Time) (int, error) + func (m *MockDB) EXPECT() *MockDBMockRecorder + func (m *MockDB) InsertBeacon(arg0 context.Context, arg1 beacon.Beacon, arg2 beacon.Usage) (beacon.InsertStats, error) + func (m *MockDB) InsertRevocation(arg0 context.Context, arg1 *path_mgmt.SignedRevInfo) error + func (m *MockDB) SetMaxIdleConns(arg0 int) + func (m *MockDB) SetMaxOpenConns(arg0 int) + type MockDBMockRecorder struct + func (mr *MockDBMockRecorder) AllRevocations(arg0 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) BeaconSources(arg0 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) CandidateBeacons(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) Close() *gomock.Call + func (mr *MockDBMockRecorder) DeleteExpiredBeacons(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) DeleteExpiredRevocations(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) DeleteRevocation(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) DeleteRevokedBeacons(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) InsertBeacon(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) InsertRevocation(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call + type MockTransaction struct + func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction + func (m *MockTransaction) AllRevocations(arg0 context.Context) (<-chan beacon.RevocationOrErr, error) + func (m *MockTransaction) BeaconSources(arg0 context.Context) ([]addr.IA, error) + func (m *MockTransaction) CandidateBeacons(arg0 context.Context, arg1 int, arg2 beacon.Usage, arg3 addr.IA) (<-chan beacon.BeaconOrErr, error) + func (m *MockTransaction) Commit() error + func (m *MockTransaction) DeleteExpiredBeacons(arg0 context.Context, arg1 time.Time) (int, error) + func (m *MockTransaction) DeleteExpiredRevocations(arg0 context.Context, arg1 time.Time) (int, error) + func (m *MockTransaction) DeleteRevocation(arg0 context.Context, arg1 addr.IA, arg2 common.IFIDType) error + func (m *MockTransaction) DeleteRevokedBeacons(arg0 context.Context, arg1 time.Time) (int, error) + func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder + func (m *MockTransaction) InsertBeacon(arg0 context.Context, arg1 beacon.Beacon, arg2 beacon.Usage) (beacon.InsertStats, error) + func (m *MockTransaction) InsertRevocation(arg0 context.Context, arg1 *path_mgmt.SignedRevInfo) error + func (m *MockTransaction) Rollback() error + type MockTransactionMockRecorder struct + func (mr *MockTransactionMockRecorder) AllRevocations(arg0 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) BeaconSources(arg0 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) CandidateBeacons(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) Commit() *gomock.Call + func (mr *MockTransactionMockRecorder) DeleteExpiredBeacons(arg0, arg1 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) DeleteExpiredRevocations(arg0, arg1 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) DeleteRevocation(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) DeleteRevokedBeacons(arg0, arg1 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) InsertBeacon(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) InsertRevocation(arg0, arg1 interface{}) *gomock.Call + func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call