Documentation ¶
Overview ¶
Package mock_beacon is a generated GoMock package.
Index ¶
- type 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
- 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
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) AllRevocations ¶
AllRevocations mocks base method
func (*MockDB) BeaconSources ¶
BeaconSources mocks base method
func (*MockDB) BeginTransaction ¶
func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (beacon.Transaction, error)
BeginTransaction mocks base method
func (*MockDB) CandidateBeacons ¶
func (m *MockDB) CandidateBeacons(arg0 context.Context, arg1 int, arg2 beacon.Usage, arg3 addr.IA) (<-chan beacon.BeaconOrErr, error)
CandidateBeacons mocks base method
func (*MockDB) DeleteExpiredBeacons ¶
DeleteExpiredBeacons mocks base method
func (*MockDB) DeleteExpiredRevocations ¶
DeleteExpiredRevocations mocks base method
func (*MockDB) DeleteRevocation ¶
DeleteRevocation mocks base method
func (*MockDB) DeleteRevokedBeacons ¶
DeleteRevokedBeacons mocks base method
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDB) InsertBeacon ¶
func (m *MockDB) InsertBeacon(arg0 context.Context, arg1 beacon.Beacon, arg2 beacon.Usage) (beacon.InsertStats, error)
InsertBeacon mocks base method
func (*MockDB) InsertRevocation ¶
InsertRevocation mocks base method
func (*MockDB) SetMaxIdleConns ¶
SetMaxIdleConns mocks base method
func (*MockDB) SetMaxOpenConns ¶
SetMaxOpenConns mocks base method
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) AllRevocations ¶
func (mr *MockDBMockRecorder) AllRevocations(arg0 interface{}) *gomock.Call
AllRevocations indicates an expected call of AllRevocations
func (*MockDBMockRecorder) BeaconSources ¶
func (mr *MockDBMockRecorder) BeaconSources(arg0 interface{}) *gomock.Call
BeaconSources indicates an expected call of BeaconSources
func (*MockDBMockRecorder) BeginTransaction ¶
func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call
BeginTransaction indicates an expected call of BeginTransaction
func (*MockDBMockRecorder) CandidateBeacons ¶
func (mr *MockDBMockRecorder) CandidateBeacons(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CandidateBeacons indicates an expected call of CandidateBeacons
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDBMockRecorder) DeleteExpiredBeacons ¶
func (mr *MockDBMockRecorder) DeleteExpiredBeacons(arg0, arg1 interface{}) *gomock.Call
DeleteExpiredBeacons indicates an expected call of DeleteExpiredBeacons
func (*MockDBMockRecorder) DeleteExpiredRevocations ¶
func (mr *MockDBMockRecorder) DeleteExpiredRevocations(arg0, arg1 interface{}) *gomock.Call
DeleteExpiredRevocations indicates an expected call of DeleteExpiredRevocations
func (*MockDBMockRecorder) DeleteRevocation ¶
func (mr *MockDBMockRecorder) DeleteRevocation(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteRevocation indicates an expected call of DeleteRevocation
func (*MockDBMockRecorder) DeleteRevokedBeacons ¶
func (mr *MockDBMockRecorder) DeleteRevokedBeacons(arg0, arg1 interface{}) *gomock.Call
DeleteRevokedBeacons indicates an expected call of DeleteRevokedBeacons
func (*MockDBMockRecorder) InsertBeacon ¶
func (mr *MockDBMockRecorder) InsertBeacon(arg0, arg1, arg2 interface{}) *gomock.Call
InsertBeacon indicates an expected call of InsertBeacon
func (*MockDBMockRecorder) InsertRevocation ¶
func (mr *MockDBMockRecorder) InsertRevocation(arg0, arg1 interface{}) *gomock.Call
InsertRevocation indicates an expected call of InsertRevocation
func (*MockDBMockRecorder) SetMaxIdleConns ¶
func (mr *MockDBMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call
SetMaxIdleConns indicates an expected call of SetMaxIdleConns
func (*MockDBMockRecorder) SetMaxOpenConns ¶
func (mr *MockDBMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call
SetMaxOpenConns indicates an expected call of SetMaxOpenConns
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance
func (*MockTransaction) AllRevocations ¶
func (m *MockTransaction) AllRevocations(arg0 context.Context) (<-chan beacon.RevocationOrErr, error)
AllRevocations mocks base method
func (*MockTransaction) BeaconSources ¶
BeaconSources mocks base method
func (*MockTransaction) CandidateBeacons ¶
func (m *MockTransaction) CandidateBeacons(arg0 context.Context, arg1 int, arg2 beacon.Usage, arg3 addr.IA) (<-chan beacon.BeaconOrErr, error)
CandidateBeacons mocks base method
func (*MockTransaction) DeleteExpiredBeacons ¶
DeleteExpiredBeacons mocks base method
func (*MockTransaction) DeleteExpiredRevocations ¶
func (m *MockTransaction) DeleteExpiredRevocations(arg0 context.Context, arg1 time.Time) (int, error)
DeleteExpiredRevocations mocks base method
func (*MockTransaction) DeleteRevocation ¶
func (m *MockTransaction) DeleteRevocation(arg0 context.Context, arg1 addr.IA, arg2 common.IFIDType) error
DeleteRevocation mocks base method
func (*MockTransaction) DeleteRevokedBeacons ¶
DeleteRevokedBeacons mocks base method
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTransaction) InsertBeacon ¶
func (m *MockTransaction) InsertBeacon(arg0 context.Context, arg1 beacon.Beacon, arg2 beacon.Usage) (beacon.InsertStats, error)
InsertBeacon mocks base method
func (*MockTransaction) InsertRevocation ¶
func (m *MockTransaction) InsertRevocation(arg0 context.Context, arg1 *path_mgmt.SignedRevInfo) error
InsertRevocation mocks base method
func (*MockTransaction) Rollback ¶
func (m *MockTransaction) Rollback() error
Rollback mocks base method
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction
func (*MockTransactionMockRecorder) AllRevocations ¶
func (mr *MockTransactionMockRecorder) AllRevocations(arg0 interface{}) *gomock.Call
AllRevocations indicates an expected call of AllRevocations
func (*MockTransactionMockRecorder) BeaconSources ¶
func (mr *MockTransactionMockRecorder) BeaconSources(arg0 interface{}) *gomock.Call
BeaconSources indicates an expected call of BeaconSources
func (*MockTransactionMockRecorder) CandidateBeacons ¶
func (mr *MockTransactionMockRecorder) CandidateBeacons(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CandidateBeacons indicates an expected call of CandidateBeacons
func (*MockTransactionMockRecorder) Commit ¶
func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTransactionMockRecorder) DeleteExpiredBeacons ¶
func (mr *MockTransactionMockRecorder) DeleteExpiredBeacons(arg0, arg1 interface{}) *gomock.Call
DeleteExpiredBeacons indicates an expected call of DeleteExpiredBeacons
func (*MockTransactionMockRecorder) DeleteExpiredRevocations ¶
func (mr *MockTransactionMockRecorder) DeleteExpiredRevocations(arg0, arg1 interface{}) *gomock.Call
DeleteExpiredRevocations indicates an expected call of DeleteExpiredRevocations
func (*MockTransactionMockRecorder) DeleteRevocation ¶
func (mr *MockTransactionMockRecorder) DeleteRevocation(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteRevocation indicates an expected call of DeleteRevocation
func (*MockTransactionMockRecorder) DeleteRevokedBeacons ¶
func (mr *MockTransactionMockRecorder) DeleteRevokedBeacons(arg0, arg1 interface{}) *gomock.Call
DeleteRevokedBeacons indicates an expected call of DeleteRevokedBeacons
func (*MockTransactionMockRecorder) InsertBeacon ¶
func (mr *MockTransactionMockRecorder) InsertBeacon(arg0, arg1, arg2 interface{}) *gomock.Call
InsertBeacon indicates an expected call of InsertBeacon
func (*MockTransactionMockRecorder) InsertRevocation ¶
func (mr *MockTransactionMockRecorder) InsertRevocation(arg0, arg1 interface{}) *gomock.Call
InsertRevocation indicates an expected call of InsertRevocation
func (*MockTransactionMockRecorder) Rollback ¶
func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback