Versions in this module Expand all Collapse all v0 v0.4.0 Nov 14, 2019 Changes in this version + type MockCryptoProvider struct + func NewMockCryptoProvider(ctrl *gomock.Controller) *MockCryptoProvider + func (m *MockCryptoProvider) EXPECT() *MockCryptoProviderMockRecorder + func (m *MockCryptoProvider) GetRawChain(arg0 context.Context, arg1 addr.IA, arg2 scrypto.Version, arg3 infra.ChainOpts, ...) ([]byte, error) + func (m *MockCryptoProvider) GetRawTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version, arg3 infra.TRCOpts, ...) ([]byte, error) + func (m *MockCryptoProvider) GetTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version, arg3 infra.TRCOpts) (*v20.TRC, error) + type MockCryptoProviderMockRecorder struct + func (mr *MockCryptoProviderMockRecorder) GetRawChain(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call + func (mr *MockCryptoProviderMockRecorder) GetRawTRC(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call + func (mr *MockCryptoProviderMockRecorder) GetTRC(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + type MockDB struct + func NewMockDB(ctrl *gomock.Controller) *MockDB + func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (v2.Transaction, error) + func (m *MockDB) ChainExists(arg0 context.Context, arg1 decoded.TRC) (bool, error) + func (m *MockDB) Close() error + func (m *MockDB) EXPECT() *MockDBMockRecorder + func (m *MockDB) GetRawChain(arg0 context.Context, arg1 addr.IA, arg2 scrypto.Version) ([]byte, error) + func (m *MockDB) GetRawTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) ([]byte, error) + func (m *MockDB) GetTRC(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) (*v20.TRC, error) + func (m *MockDB) GetTRCInfo(arg0 context.Context, arg1 addr.ISD, arg2 scrypto.Version) (v2.TRCInfo, error) + func (m *MockDB) InsertChain(arg0 context.Context, arg1 decoded.Chain) (bool, bool, error) + func (m *MockDB) InsertTRC(arg0 context.Context, arg1 decoded.TRC) (bool, error) + func (m *MockDB) SetMaxIdleConns(arg0 int) + func (m *MockDB) SetMaxOpenConns(arg0 int) + func (m *MockDB) TRCExists(arg0 context.Context, arg1 decoded.TRC) (bool, error) + type MockDBMockRecorder struct + func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) ChainExists(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) Close() *gomock.Call + func (mr *MockDBMockRecorder) GetRawChain(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) GetRawTRC(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) GetTRC(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) GetTRCInfo(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call + func (mr *MockDBMockRecorder) TRCExists(arg0, arg1 interface{}) *gomock.Call + type MockInserter struct + func NewMockInserter(ctrl *gomock.Controller) *MockInserter + func (m *MockInserter) EXPECT() *MockInserterMockRecorder + func (m *MockInserter) InsertChain(arg0 context.Context, arg1 decoded.Chain, arg2 v2.TRCProviderFunc) error + func (m *MockInserter) InsertTRC(arg0 context.Context, arg1 decoded.TRC, arg2 v2.TRCProviderFunc) error + type MockInserterMockRecorder struct + func (mr *MockInserterMockRecorder) InsertChain(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockInserterMockRecorder) InsertTRC(arg0, arg1, arg2 interface{}) *gomock.Call + type MockRPC struct + func NewMockRPC(ctrl *gomock.Controller) *MockRPC + func (m *MockRPC) EXPECT() *MockRPCMockRecorder + func (m *MockRPC) GetCertChain(arg0 context.Context, arg1 v2.ChainReq, arg2 net.Addr) ([]byte, error) + func (m *MockRPC) GetTRC(arg0 context.Context, arg1 v2.TRCReq, arg2 net.Addr) ([]byte, error) + func (m *MockRPC) SendCertChain(arg0 context.Context, arg1 []byte, arg2 net.Addr) error + func (m *MockRPC) SendTRC(arg0 context.Context, arg1 []byte, arg2 net.Addr) error + func (m *MockRPC) SetMsgr(arg0 infra.Messenger) + type MockRPCMockRecorder struct + func (mr *MockRPCMockRecorder) GetCertChain(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockRPCMockRecorder) GetTRC(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockRPCMockRecorder) SendCertChain(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockRPCMockRecorder) SendTRC(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockRPCMockRecorder) SetMsgr(arg0 interface{}) *gomock.Call + type MockRecurser struct + func NewMockRecurser(ctrl *gomock.Controller) *MockRecurser + func (m *MockRecurser) AllowRecursion(arg0 net.Addr) error + func (m *MockRecurser) EXPECT() *MockRecurserMockRecorder + type MockRecurserMockRecorder struct + func (mr *MockRecurserMockRecorder) AllowRecursion(arg0 interface{}) *gomock.Call + type MockResolver struct + func NewMockResolver(ctrl *gomock.Controller) *MockResolver + func (m *MockResolver) Chain(arg0 context.Context, arg1 v2.ChainReq, arg2 net.Addr) (decoded.Chain, error) + func (m *MockResolver) EXPECT() *MockResolverMockRecorder + func (m *MockResolver) TRC(arg0 context.Context, arg1 v2.TRCReq, arg2 net.Addr) (decoded.TRC, error) + type MockResolverMockRecorder struct + func (mr *MockResolverMockRecorder) Chain(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockResolverMockRecorder) TRC(arg0, arg1, arg2 interface{}) *gomock.Call + type MockRouter struct + func NewMockRouter(ctrl *gomock.Controller) *MockRouter + func (m *MockRouter) ChooseServer(arg0 context.Context, arg1 addr.ISD) (net.Addr, error) + func (m *MockRouter) EXPECT() *MockRouterMockRecorder + type MockRouterMockRecorder struct + func (mr *MockRouterMockRecorder) ChooseServer(arg0, arg1 interface{}) *gomock.Call