Documentation ¶
Index ¶
- func SetupDB(t testing.TB) *db.BeaconDB
- func TeardownDB(t testing.TB, db *db.BeaconDB)
- type MockBeaconServiceServer
- func (m *MockBeaconServiceServer) CanonicalHead(arg0 context.Context, arg1 *types.Empty) (*v1.BeaconBlock, error)
- func (m *MockBeaconServiceServer) EXPECT() *MockBeaconServiceServerMockRecorder
- func (m *MockBeaconServiceServer) LatestAttestation(arg0 *types.Empty, arg1 v10.BeaconService_LatestAttestationServer) error
- func (m *MockBeaconServiceServer) WaitForChainStart(arg0 *types.Empty, arg1 v10.BeaconService_WaitForChainStartServer) error
- type MockBeaconServiceServerMockRecorder
- func (mr *MockBeaconServiceServerMockRecorder) CanonicalHead(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBeaconServiceServerMockRecorder) LatestAttestation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBeaconServiceServerMockRecorder) WaitForChainStart(arg0, arg1 interface{}) *gomock.Call
- type MockBeaconService_LatestAttestationServer
- func (m *MockBeaconService_LatestAttestationServer) Context() context.Context
- func (m *MockBeaconService_LatestAttestationServer) EXPECT() *MockBeaconService_LatestAttestationServerMockRecorder
- func (m *MockBeaconService_LatestAttestationServer) RecvMsg(arg0 interface{}) error
- func (m *MockBeaconService_LatestAttestationServer) Send(arg0 *v1.Attestation) error
- func (m *MockBeaconService_LatestAttestationServer) SendHeader(arg0 metadata.MD) error
- func (m *MockBeaconService_LatestAttestationServer) SendMsg(arg0 interface{}) error
- func (m *MockBeaconService_LatestAttestationServer) SetHeader(arg0 metadata.MD) error
- func (m *MockBeaconService_LatestAttestationServer) SetTrailer(arg0 metadata.MD)
- type MockBeaconService_LatestAttestationServerMockRecorder
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) Context() *gomock.Call
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockBeaconService_WaitForChainStartServer
- func (m *MockBeaconService_WaitForChainStartServer) Context() context.Context
- func (m *MockBeaconService_WaitForChainStartServer) EXPECT() *MockBeaconService_WaitForChainStartServerMockRecorder
- func (m *MockBeaconService_WaitForChainStartServer) RecvMsg(arg0 interface{}) error
- func (m *MockBeaconService_WaitForChainStartServer) Send(arg0 *v10.ChainStartResponse) error
- func (m *MockBeaconService_WaitForChainStartServer) SendHeader(arg0 metadata.MD) error
- func (m *MockBeaconService_WaitForChainStartServer) SendMsg(arg0 interface{}) error
- func (m *MockBeaconService_WaitForChainStartServer) SetHeader(arg0 metadata.MD) error
- func (m *MockBeaconService_WaitForChainStartServer) SetTrailer(arg0 metadata.MD)
- type MockBeaconService_WaitForChainStartServerMockRecorder
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) Context() *gomock.Call
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
- func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
- type MockValidatorServiceClient
- func (m *MockValidatorServiceClient) EXPECT() *MockValidatorServiceClientMockRecorder
- func (m *MockValidatorServiceClient) ValidatorEpochAssignments(arg0 context.Context, arg1 *v1.ValidatorEpochAssignmentsRequest, ...) (*v1.ValidatorEpochAssignmentsResponse, error)
- func (m *MockValidatorServiceClient) ValidatorIndex(arg0 context.Context, arg1 *v1.ValidatorIndexRequest, arg2 ...grpc.CallOption) (*v1.ValidatorIndexResponse, error)
- type MockValidatorServiceClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockBeaconServiceServer ¶
type MockBeaconServiceServer struct {
// contains filtered or unexported fields
}
MockBeaconServiceServer is a mock of BeaconServiceServer interface
func NewMockBeaconServiceServer ¶
func NewMockBeaconServiceServer(ctrl *gomock.Controller) *MockBeaconServiceServer
NewMockBeaconServiceServer creates a new mock instance
func (*MockBeaconServiceServer) CanonicalHead ¶
func (m *MockBeaconServiceServer) CanonicalHead(arg0 context.Context, arg1 *types.Empty) (*v1.BeaconBlock, error)
CanonicalHead mocks base method
func (*MockBeaconServiceServer) EXPECT ¶
func (m *MockBeaconServiceServer) EXPECT() *MockBeaconServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBeaconServiceServer) LatestAttestation ¶
func (m *MockBeaconServiceServer) LatestAttestation(arg0 *types.Empty, arg1 v10.BeaconService_LatestAttestationServer) error
LatestAttestation mocks base method
func (*MockBeaconServiceServer) WaitForChainStart ¶
func (m *MockBeaconServiceServer) WaitForChainStart(arg0 *types.Empty, arg1 v10.BeaconService_WaitForChainStartServer) error
WaitForChainStart mocks base method
type MockBeaconServiceServerMockRecorder ¶
type MockBeaconServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconServiceServerMockRecorder is the mock recorder for MockBeaconServiceServer
func (*MockBeaconServiceServerMockRecorder) CanonicalHead ¶
func (mr *MockBeaconServiceServerMockRecorder) CanonicalHead(arg0, arg1 interface{}) *gomock.Call
CanonicalHead indicates an expected call of CanonicalHead
func (*MockBeaconServiceServerMockRecorder) LatestAttestation ¶
func (mr *MockBeaconServiceServerMockRecorder) LatestAttestation(arg0, arg1 interface{}) *gomock.Call
LatestAttestation indicates an expected call of LatestAttestation
func (*MockBeaconServiceServerMockRecorder) WaitForChainStart ¶
func (mr *MockBeaconServiceServerMockRecorder) WaitForChainStart(arg0, arg1 interface{}) *gomock.Call
WaitForChainStart indicates an expected call of WaitForChainStart
type MockBeaconService_LatestAttestationServer ¶
type MockBeaconService_LatestAttestationServer struct {
// contains filtered or unexported fields
}
MockBeaconService_LatestAttestationServer is a mock of BeaconService_LatestAttestationServer interface
func NewMockBeaconService_LatestAttestationServer ¶
func NewMockBeaconService_LatestAttestationServer(ctrl *gomock.Controller) *MockBeaconService_LatestAttestationServer
NewMockBeaconService_LatestAttestationServer creates a new mock instance
func (*MockBeaconService_LatestAttestationServer) Context ¶
func (m *MockBeaconService_LatestAttestationServer) Context() context.Context
Context mocks base method
func (*MockBeaconService_LatestAttestationServer) EXPECT ¶
func (m *MockBeaconService_LatestAttestationServer) EXPECT() *MockBeaconService_LatestAttestationServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBeaconService_LatestAttestationServer) RecvMsg ¶
func (m *MockBeaconService_LatestAttestationServer) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method
func (*MockBeaconService_LatestAttestationServer) Send ¶
func (m *MockBeaconService_LatestAttestationServer) Send(arg0 *v1.Attestation) error
Send mocks base method
func (*MockBeaconService_LatestAttestationServer) SendHeader ¶
func (m *MockBeaconService_LatestAttestationServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method
func (*MockBeaconService_LatestAttestationServer) SendMsg ¶
func (m *MockBeaconService_LatestAttestationServer) SendMsg(arg0 interface{}) error
SendMsg mocks base method
func (*MockBeaconService_LatestAttestationServer) SetHeader ¶
func (m *MockBeaconService_LatestAttestationServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method
func (*MockBeaconService_LatestAttestationServer) SetTrailer ¶
func (m *MockBeaconService_LatestAttestationServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method
type MockBeaconService_LatestAttestationServerMockRecorder ¶
type MockBeaconService_LatestAttestationServerMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconService_LatestAttestationServerMockRecorder is the mock recorder for MockBeaconService_LatestAttestationServer
func (*MockBeaconService_LatestAttestationServerMockRecorder) Context ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockBeaconService_LatestAttestationServerMockRecorder) RecvMsg ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg
func (*MockBeaconService_LatestAttestationServerMockRecorder) Send ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockBeaconService_LatestAttestationServerMockRecorder) SendHeader ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader
func (*MockBeaconService_LatestAttestationServerMockRecorder) SendMsg ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg
func (*MockBeaconService_LatestAttestationServerMockRecorder) SetHeader ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader
func (*MockBeaconService_LatestAttestationServerMockRecorder) SetTrailer ¶
func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer
type MockBeaconService_WaitForChainStartServer ¶
type MockBeaconService_WaitForChainStartServer struct {
// contains filtered or unexported fields
}
MockBeaconService_WaitForChainStartServer is a mock of BeaconService_WaitForChainStartServer interface
func NewMockBeaconService_WaitForChainStartServer ¶
func NewMockBeaconService_WaitForChainStartServer(ctrl *gomock.Controller) *MockBeaconService_WaitForChainStartServer
NewMockBeaconService_WaitForChainStartServer creates a new mock instance
func (*MockBeaconService_WaitForChainStartServer) Context ¶
func (m *MockBeaconService_WaitForChainStartServer) Context() context.Context
Context mocks base method
func (*MockBeaconService_WaitForChainStartServer) EXPECT ¶
func (m *MockBeaconService_WaitForChainStartServer) EXPECT() *MockBeaconService_WaitForChainStartServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBeaconService_WaitForChainStartServer) RecvMsg ¶
func (m *MockBeaconService_WaitForChainStartServer) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method
func (*MockBeaconService_WaitForChainStartServer) Send ¶
func (m *MockBeaconService_WaitForChainStartServer) Send(arg0 *v10.ChainStartResponse) error
Send mocks base method
func (*MockBeaconService_WaitForChainStartServer) SendHeader ¶
func (m *MockBeaconService_WaitForChainStartServer) SendHeader(arg0 metadata.MD) error
SendHeader mocks base method
func (*MockBeaconService_WaitForChainStartServer) SendMsg ¶
func (m *MockBeaconService_WaitForChainStartServer) SendMsg(arg0 interface{}) error
SendMsg mocks base method
func (*MockBeaconService_WaitForChainStartServer) SetHeader ¶
func (m *MockBeaconService_WaitForChainStartServer) SetHeader(arg0 metadata.MD) error
SetHeader mocks base method
func (*MockBeaconService_WaitForChainStartServer) SetTrailer ¶
func (m *MockBeaconService_WaitForChainStartServer) SetTrailer(arg0 metadata.MD)
SetTrailer mocks base method
type MockBeaconService_WaitForChainStartServerMockRecorder ¶
type MockBeaconService_WaitForChainStartServerMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconService_WaitForChainStartServerMockRecorder is the mock recorder for MockBeaconService_WaitForChainStartServer
func (*MockBeaconService_WaitForChainStartServerMockRecorder) Context ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockBeaconService_WaitForChainStartServerMockRecorder) RecvMsg ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg
func (*MockBeaconService_WaitForChainStartServerMockRecorder) Send ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockBeaconService_WaitForChainStartServerMockRecorder) SendHeader ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call
SendHeader indicates an expected call of SendHeader
func (*MockBeaconService_WaitForChainStartServerMockRecorder) SendMsg ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg
func (*MockBeaconService_WaitForChainStartServerMockRecorder) SetHeader ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call
SetHeader indicates an expected call of SetHeader
func (*MockBeaconService_WaitForChainStartServerMockRecorder) SetTrailer ¶
func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call
SetTrailer indicates an expected call of SetTrailer
type MockValidatorServiceClient ¶
type MockValidatorServiceClient struct {
// contains filtered or unexported fields
}
MockValidatorServiceClient is a mock of ValidatorServiceClient interface
func NewMockValidatorServiceClient ¶
func NewMockValidatorServiceClient(ctrl *gomock.Controller) *MockValidatorServiceClient
NewMockValidatorServiceClient creates a new mock instance
func (*MockValidatorServiceClient) EXPECT ¶
func (m *MockValidatorServiceClient) EXPECT() *MockValidatorServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockValidatorServiceClient) ValidatorEpochAssignments ¶
func (m *MockValidatorServiceClient) ValidatorEpochAssignments(arg0 context.Context, arg1 *v1.ValidatorEpochAssignmentsRequest, arg2 ...grpc.CallOption) (*v1.ValidatorEpochAssignmentsResponse, error)
ValidatorEpochAssignments mocks base method
func (*MockValidatorServiceClient) ValidatorIndex ¶
func (m *MockValidatorServiceClient) ValidatorIndex(arg0 context.Context, arg1 *v1.ValidatorIndexRequest, arg2 ...grpc.CallOption) (*v1.ValidatorIndexResponse, error)
ValidatorIndex mocks base method
type MockValidatorServiceClientMockRecorder ¶
type MockValidatorServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorServiceClientMockRecorder is the mock recorder for MockValidatorServiceClient
func (*MockValidatorServiceClientMockRecorder) ValidatorEpochAssignments ¶
func (mr *MockValidatorServiceClientMockRecorder) ValidatorEpochAssignments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ValidatorEpochAssignments indicates an expected call of ValidatorEpochAssignments
func (*MockValidatorServiceClientMockRecorder) ValidatorIndex ¶
func (mr *MockValidatorServiceClientMockRecorder) ValidatorIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ValidatorIndex indicates an expected call of ValidatorIndex