Documentation ¶
Overview ¶
Package v2alpha1 is a generated GoMock package.
Package v2alpha1 is a generated GoMock package.
Package v2alpha1 is a generated GoMock package.
Index ¶
- Constants
- type AccountService
- func (s *AccountService) List(ctx context.Context, request *spacemeshv2alpha1.AccountRequest) (*spacemeshv2alpha1.AccountList, error)
- func (s *AccountService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *AccountService) RegisterService(server *grpc.Server)
- func (s *AccountService) String() string
- type ActivationService
- func (s *ActivationService) ActivationsCount(ctx context.Context, request *spacemeshv2alpha1.ActivationsCountRequest) (*spacemeshv2alpha1.ActivationsCountResponse, error)
- func (s *ActivationService) List(ctx context.Context, request *spacemeshv2alpha1.ActivationRequest) (*spacemeshv2alpha1.ActivationList, error)
- func (s *ActivationService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *ActivationService) RegisterService(server *grpc.Server)
- func (s *ActivationService) String() string
- type ActivationStreamService
- func (s *ActivationStreamService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *ActivationStreamService) RegisterService(server *grpc.Server)
- func (s *ActivationStreamService) Stream(request *spacemeshv2alpha1.ActivationStreamRequest, ...) error
- func (s *ActivationStreamService) String() string
- type LayerService
- func (s *LayerService) List(ctx context.Context, request *spacemeshv2alpha1.LayerRequest) (*spacemeshv2alpha1.LayerList, error)
- func (s *LayerService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *LayerService) RegisterService(server *grpc.Server)
- func (s *LayerService) String() string
- type LayerStreamService
- type MockaccountConState
- type MockaccountConStateGetProjectionCall
- func (c *MockaccountConStateGetProjectionCall) Do(f func(types.Address) (uint64, uint64)) *MockaccountConStateGetProjectionCall
- func (c *MockaccountConStateGetProjectionCall) DoAndReturn(f func(types.Address) (uint64, uint64)) *MockaccountConStateGetProjectionCall
- func (c *MockaccountConStateGetProjectionCall) Return(arg0, arg1 uint64) *MockaccountConStateGetProjectionCall
- type MockaccountConStateMockRecorder
- type MocknodeMeshAPI
- type MocknodeMeshAPILatestLayerCall
- func (c *MocknodeMeshAPILatestLayerCall) Do(f func() types.LayerID) *MocknodeMeshAPILatestLayerCall
- func (c *MocknodeMeshAPILatestLayerCall) DoAndReturn(f func() types.LayerID) *MocknodeMeshAPILatestLayerCall
- func (c *MocknodeMeshAPILatestLayerCall) Return(arg0 types.LayerID) *MocknodeMeshAPILatestLayerCall
- type MocknodeMeshAPILatestLayerInStateCall
- func (c *MocknodeMeshAPILatestLayerInStateCall) Do(f func() types.LayerID) *MocknodeMeshAPILatestLayerInStateCall
- func (c *MocknodeMeshAPILatestLayerInStateCall) DoAndReturn(f func() types.LayerID) *MocknodeMeshAPILatestLayerInStateCall
- func (c *MocknodeMeshAPILatestLayerInStateCall) Return(arg0 types.LayerID) *MocknodeMeshAPILatestLayerInStateCall
- type MocknodeMeshAPIMockRecorder
- type MocknodeMeshAPIProcessedLayerCall
- func (c *MocknodeMeshAPIProcessedLayerCall) Do(f func() types.LayerID) *MocknodeMeshAPIProcessedLayerCall
- func (c *MocknodeMeshAPIProcessedLayerCall) DoAndReturn(f func() types.LayerID) *MocknodeMeshAPIProcessedLayerCall
- func (c *MocknodeMeshAPIProcessedLayerCall) Return(arg0 types.LayerID) *MocknodeMeshAPIProcessedLayerCall
- type MocknodePeerCounter
- type MocknodePeerCounterMockRecorder
- type MocknodePeerCounterPeerCountCall
- type MocknodeSyncer
- type MocknodeSyncerIsSyncedCall
- type MocknodeSyncerMockRecorder
- type MocktransactionConState
- type MocktransactionConStateMockRecorder
- type MocktransactionConStateValidationCall
- func (c *MocktransactionConStateValidationCall) Do(f func(types.RawTx) system.ValidationRequest) *MocktransactionConStateValidationCall
- func (c *MocktransactionConStateValidationCall) DoAndReturn(f func(types.RawTx) system.ValidationRequest) *MocktransactionConStateValidationCall
- func (c *MocktransactionConStateValidationCall) Return(arg0 system.ValidationRequest) *MocktransactionConStateValidationCall
- type MocktransactionSyncer
- type MocktransactionSyncerIsSyncedCall
- func (c *MocktransactionSyncerIsSyncedCall) Do(f func(context.Context) bool) *MocktransactionSyncerIsSyncedCall
- func (c *MocktransactionSyncerIsSyncedCall) DoAndReturn(f func(context.Context) bool) *MocktransactionSyncerIsSyncedCall
- func (c *MocktransactionSyncerIsSyncedCall) Return(arg0 bool) *MocktransactionSyncerIsSyncedCall
- type MocktransactionSyncerMockRecorder
- type MocktransactionValidator
- type MocktransactionValidatorMockRecorder
- type MocktransactionValidatorVerifyAndCacheTxCall
- func (c *MocktransactionValidatorVerifyAndCacheTxCall) Do(f func(context.Context, []byte) error) *MocktransactionValidatorVerifyAndCacheTxCall
- func (c *MocktransactionValidatorVerifyAndCacheTxCall) DoAndReturn(f func(context.Context, []byte) error) *MocktransactionValidatorVerifyAndCacheTxCall
- func (c *MocktransactionValidatorVerifyAndCacheTxCall) Return(arg0 error) *MocktransactionValidatorVerifyAndCacheTxCall
- type NetworkService
- func (s *NetworkService) Info(context.Context, *spacemeshv2alpha1.NetworkInfoRequest) (*spacemeshv2alpha1.NetworkInfoResponse, error)
- func (s *NetworkService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *NetworkService) RegisterService(server *grpc.Server)
- func (s *NetworkService) String() string
- type NodeService
- func (s *NodeService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *NodeService) RegisterService(server *grpc.Server)
- func (s *NodeService) Status(ctx context.Context, _ *spacemeshv2alpha1.NodeStatusRequest) (*spacemeshv2alpha1.NodeStatusResponse, error)
- func (s *NodeService) String() string
- type RewardService
- func (s *RewardService) List(ctx context.Context, request *spacemeshv2alpha1.RewardRequest) (*spacemeshv2alpha1.RewardList, error)
- func (s *RewardService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *RewardService) RegisterService(server *grpc.Server)
- func (s *RewardService) String() string
- type RewardStreamService
- type TransactionService
- func (s *TransactionService) EstimateGas(ctx context.Context, request *spacemeshv2alpha1.EstimateGasRequest) (*spacemeshv2alpha1.EstimateGasResponse, error)
- func (s *TransactionService) List(ctx context.Context, request *spacemeshv2alpha1.TransactionRequest) (*spacemeshv2alpha1.TransactionList, error)
- func (s *TransactionService) ParseTransaction(ctx context.Context, request *spacemeshv2alpha1.ParseTransactionRequest) (*spacemeshv2alpha1.ParseTransactionResponse, error)
- func (s *TransactionService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *TransactionService) RegisterService(server *grpc.Server)
- func (s *TransactionService) String() string
- func (s *TransactionService) SubmitTransaction(ctx context.Context, request *spacemeshv2alpha1.SubmitTransactionRequest) (*spacemeshv2alpha1.SubmitTransactionResponse, error)
- type TransactionStreamService
- func (s *TransactionStreamService) RegisterHandlerService(mux *runtime.ServeMux) error
- func (s *TransactionStreamService) RegisterService(server *grpc.Server)
- func (s *TransactionStreamService) Stream(request *spacemeshv2alpha1.TransactionStreamRequest, ...) error
- func (s *TransactionStreamService) String() string
Constants ¶
const ( Activation = "activation_v2alpha1" ActivationStream = "activation_stream_v2alpha1" )
const ( Layer = "layer_v2alpha1" LayerStream = "layer_stream_v2alpha1" )
const ( Reward = "reward_v2alpha1" RewardStream = "reward_stream_v2alpha1" )
const ( Transaction = "transaction_v2alpha1" TransactionStream = "transaction_stream_v2alpha1" )
const (
Account = "account_v2alpha1"
)
const (
Network = "network_v2alpha1"
)
const (
Node = "node_v2alpha1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶ added in v1.6.0
type AccountService struct {
// contains filtered or unexported fields
}
func NewAccountService ¶ added in v1.6.0
func NewAccountService(db sql.Executor, conState accountConState) *AccountService
func (*AccountService) List ¶ added in v1.6.0
func (s *AccountService) List( ctx context.Context, request *spacemeshv2alpha1.AccountRequest, ) (*spacemeshv2alpha1.AccountList, error)
func (*AccountService) RegisterHandlerService ¶ added in v1.6.0
func (s *AccountService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*AccountService) RegisterService ¶ added in v1.6.0
func (s *AccountService) RegisterService(server *grpc.Server)
func (*AccountService) String ¶ added in v1.6.0
func (s *AccountService) String() string
String returns the service name.
type ActivationService ¶
type ActivationService struct {
// contains filtered or unexported fields
}
func NewActivationService ¶
func NewActivationService(db sql.Executor) *ActivationService
func (*ActivationService) ActivationsCount ¶
func (s *ActivationService) ActivationsCount( ctx context.Context, request *spacemeshv2alpha1.ActivationsCountRequest, ) (*spacemeshv2alpha1.ActivationsCountResponse, error)
func (*ActivationService) List ¶
func (s *ActivationService) List( ctx context.Context, request *spacemeshv2alpha1.ActivationRequest, ) (*spacemeshv2alpha1.ActivationList, error)
func (*ActivationService) RegisterHandlerService ¶
func (s *ActivationService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*ActivationService) RegisterService ¶
func (s *ActivationService) RegisterService(server *grpc.Server)
func (*ActivationService) String ¶
func (s *ActivationService) String() string
String returns the service name.
type ActivationStreamService ¶
type ActivationStreamService struct {
// contains filtered or unexported fields
}
func NewActivationStreamService ¶
func NewActivationStreamService(db sql.Executor) *ActivationStreamService
func (*ActivationStreamService) RegisterHandlerService ¶
func (s *ActivationStreamService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*ActivationStreamService) RegisterService ¶
func (s *ActivationStreamService) RegisterService(server *grpc.Server)
func (*ActivationStreamService) Stream ¶
func (s *ActivationStreamService) Stream( request *spacemeshv2alpha1.ActivationStreamRequest, stream spacemeshv2alpha1.ActivationStreamService_StreamServer, ) error
func (*ActivationStreamService) String ¶
func (s *ActivationStreamService) String() string
type LayerService ¶ added in v1.6.0
type LayerService struct {
// contains filtered or unexported fields
}
func NewLayerService ¶ added in v1.6.0
func NewLayerService(db sql.Executor) *LayerService
func (*LayerService) List ¶ added in v1.6.0
func (s *LayerService) List( ctx context.Context, request *spacemeshv2alpha1.LayerRequest, ) (*spacemeshv2alpha1.LayerList, error)
func (*LayerService) RegisterHandlerService ¶ added in v1.6.0
func (s *LayerService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*LayerService) RegisterService ¶ added in v1.6.0
func (s *LayerService) RegisterService(server *grpc.Server)
func (*LayerService) String ¶ added in v1.6.0
func (s *LayerService) String() string
String returns the service name.
type LayerStreamService ¶ added in v1.6.0
type LayerStreamService struct {
// contains filtered or unexported fields
}
func NewLayerStreamService ¶ added in v1.6.0
func NewLayerStreamService(db sql.Executor) *LayerStreamService
func (*LayerStreamService) RegisterHandlerService ¶ added in v1.6.0
func (s *LayerStreamService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*LayerStreamService) RegisterService ¶ added in v1.6.0
func (s *LayerStreamService) RegisterService(server *grpc.Server)
func (*LayerStreamService) Stream ¶ added in v1.6.0
func (s *LayerStreamService) Stream( request *spacemeshv2alpha1.LayerStreamRequest, stream spacemeshv2alpha1.LayerStreamService_StreamServer, ) error
func (*LayerStreamService) String ¶ added in v1.6.0
func (s *LayerStreamService) String() string
type MockaccountConState ¶ added in v1.6.0
type MockaccountConState struct {
// contains filtered or unexported fields
}
MockaccountConState is a mock of accountConState interface.
func NewMockaccountConState ¶ added in v1.6.0
func NewMockaccountConState(ctrl *gomock.Controller) *MockaccountConState
NewMockaccountConState creates a new mock instance.
func (*MockaccountConState) EXPECT ¶ added in v1.6.0
func (m *MockaccountConState) EXPECT() *MockaccountConStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockaccountConState) GetProjection ¶ added in v1.6.0
func (m *MockaccountConState) GetProjection(arg0 types.Address) (uint64, uint64)
GetProjection mocks base method.
type MockaccountConStateGetProjectionCall ¶ added in v1.6.0
MockaccountConStateGetProjectionCall wrap *gomock.Call
func (*MockaccountConStateGetProjectionCall) Do ¶ added in v1.6.0
func (c *MockaccountConStateGetProjectionCall) Do(f func(types.Address) (uint64, uint64)) *MockaccountConStateGetProjectionCall
Do rewrite *gomock.Call.Do
func (*MockaccountConStateGetProjectionCall) DoAndReturn ¶ added in v1.6.0
func (c *MockaccountConStateGetProjectionCall) DoAndReturn(f func(types.Address) (uint64, uint64)) *MockaccountConStateGetProjectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockaccountConStateGetProjectionCall) Return ¶ added in v1.6.0
func (c *MockaccountConStateGetProjectionCall) Return(arg0, arg1 uint64) *MockaccountConStateGetProjectionCall
Return rewrite *gomock.Call.Return
type MockaccountConStateMockRecorder ¶ added in v1.6.0
type MockaccountConStateMockRecorder struct {
// contains filtered or unexported fields
}
MockaccountConStateMockRecorder is the mock recorder for MockaccountConState.
func (*MockaccountConStateMockRecorder) GetProjection ¶ added in v1.6.0
func (mr *MockaccountConStateMockRecorder) GetProjection(arg0 any) *MockaccountConStateGetProjectionCall
GetProjection indicates an expected call of GetProjection.
type MocknodeMeshAPI ¶ added in v1.4.5
type MocknodeMeshAPI struct {
// contains filtered or unexported fields
}
MocknodeMeshAPI is a mock of nodeMeshAPI interface.
func NewMocknodeMeshAPI ¶ added in v1.4.5
func NewMocknodeMeshAPI(ctrl *gomock.Controller) *MocknodeMeshAPI
NewMocknodeMeshAPI creates a new mock instance.
func (*MocknodeMeshAPI) EXPECT ¶ added in v1.4.5
func (m *MocknodeMeshAPI) EXPECT() *MocknodeMeshAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocknodeMeshAPI) LatestLayer ¶ added in v1.4.5
func (m *MocknodeMeshAPI) LatestLayer() types.LayerID
LatestLayer mocks base method.
func (*MocknodeMeshAPI) LatestLayerInState ¶ added in v1.4.5
func (m *MocknodeMeshAPI) LatestLayerInState() types.LayerID
LatestLayerInState mocks base method.
func (*MocknodeMeshAPI) ProcessedLayer ¶ added in v1.4.5
func (m *MocknodeMeshAPI) ProcessedLayer() types.LayerID
ProcessedLayer mocks base method.
type MocknodeMeshAPILatestLayerCall ¶ added in v1.4.5
MocknodeMeshAPILatestLayerCall wrap *gomock.Call
func (*MocknodeMeshAPILatestLayerCall) Do ¶ added in v1.4.5
func (c *MocknodeMeshAPILatestLayerCall) Do(f func() types.LayerID) *MocknodeMeshAPILatestLayerCall
Do rewrite *gomock.Call.Do
func (*MocknodeMeshAPILatestLayerCall) DoAndReturn ¶ added in v1.4.5
func (c *MocknodeMeshAPILatestLayerCall) DoAndReturn(f func() types.LayerID) *MocknodeMeshAPILatestLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocknodeMeshAPILatestLayerCall) Return ¶ added in v1.4.5
func (c *MocknodeMeshAPILatestLayerCall) Return(arg0 types.LayerID) *MocknodeMeshAPILatestLayerCall
Return rewrite *gomock.Call.Return
type MocknodeMeshAPILatestLayerInStateCall ¶ added in v1.4.5
MocknodeMeshAPILatestLayerInStateCall wrap *gomock.Call
func (*MocknodeMeshAPILatestLayerInStateCall) Do ¶ added in v1.4.5
func (c *MocknodeMeshAPILatestLayerInStateCall) Do(f func() types.LayerID) *MocknodeMeshAPILatestLayerInStateCall
Do rewrite *gomock.Call.Do
func (*MocknodeMeshAPILatestLayerInStateCall) DoAndReturn ¶ added in v1.4.5
func (c *MocknodeMeshAPILatestLayerInStateCall) DoAndReturn(f func() types.LayerID) *MocknodeMeshAPILatestLayerInStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocknodeMeshAPILatestLayerInStateCall) Return ¶ added in v1.4.5
func (c *MocknodeMeshAPILatestLayerInStateCall) Return(arg0 types.LayerID) *MocknodeMeshAPILatestLayerInStateCall
Return rewrite *gomock.Call.Return
type MocknodeMeshAPIMockRecorder ¶ added in v1.4.5
type MocknodeMeshAPIMockRecorder struct {
// contains filtered or unexported fields
}
MocknodeMeshAPIMockRecorder is the mock recorder for MocknodeMeshAPI.
func (*MocknodeMeshAPIMockRecorder) LatestLayer ¶ added in v1.4.5
func (mr *MocknodeMeshAPIMockRecorder) LatestLayer() *MocknodeMeshAPILatestLayerCall
LatestLayer indicates an expected call of LatestLayer.
func (*MocknodeMeshAPIMockRecorder) LatestLayerInState ¶ added in v1.4.5
func (mr *MocknodeMeshAPIMockRecorder) LatestLayerInState() *MocknodeMeshAPILatestLayerInStateCall
LatestLayerInState indicates an expected call of LatestLayerInState.
func (*MocknodeMeshAPIMockRecorder) ProcessedLayer ¶ added in v1.4.5
func (mr *MocknodeMeshAPIMockRecorder) ProcessedLayer() *MocknodeMeshAPIProcessedLayerCall
ProcessedLayer indicates an expected call of ProcessedLayer.
type MocknodeMeshAPIProcessedLayerCall ¶ added in v1.4.5
MocknodeMeshAPIProcessedLayerCall wrap *gomock.Call
func (*MocknodeMeshAPIProcessedLayerCall) Do ¶ added in v1.4.5
func (c *MocknodeMeshAPIProcessedLayerCall) Do(f func() types.LayerID) *MocknodeMeshAPIProcessedLayerCall
Do rewrite *gomock.Call.Do
func (*MocknodeMeshAPIProcessedLayerCall) DoAndReturn ¶ added in v1.4.5
func (c *MocknodeMeshAPIProcessedLayerCall) DoAndReturn(f func() types.LayerID) *MocknodeMeshAPIProcessedLayerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocknodeMeshAPIProcessedLayerCall) Return ¶ added in v1.4.5
func (c *MocknodeMeshAPIProcessedLayerCall) Return(arg0 types.LayerID) *MocknodeMeshAPIProcessedLayerCall
Return rewrite *gomock.Call.Return
type MocknodePeerCounter ¶ added in v1.4.5
type MocknodePeerCounter struct {
// contains filtered or unexported fields
}
MocknodePeerCounter is a mock of nodePeerCounter interface.
func NewMocknodePeerCounter ¶ added in v1.4.5
func NewMocknodePeerCounter(ctrl *gomock.Controller) *MocknodePeerCounter
NewMocknodePeerCounter creates a new mock instance.
func (*MocknodePeerCounter) EXPECT ¶ added in v1.4.5
func (m *MocknodePeerCounter) EXPECT() *MocknodePeerCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocknodePeerCounter) PeerCount ¶ added in v1.4.5
func (m *MocknodePeerCounter) PeerCount() uint64
PeerCount mocks base method.
type MocknodePeerCounterMockRecorder ¶ added in v1.4.5
type MocknodePeerCounterMockRecorder struct {
// contains filtered or unexported fields
}
MocknodePeerCounterMockRecorder is the mock recorder for MocknodePeerCounter.
func (*MocknodePeerCounterMockRecorder) PeerCount ¶ added in v1.4.5
func (mr *MocknodePeerCounterMockRecorder) PeerCount() *MocknodePeerCounterPeerCountCall
PeerCount indicates an expected call of PeerCount.
type MocknodePeerCounterPeerCountCall ¶ added in v1.4.5
MocknodePeerCounterPeerCountCall wrap *gomock.Call
func (*MocknodePeerCounterPeerCountCall) Do ¶ added in v1.4.5
func (c *MocknodePeerCounterPeerCountCall) Do(f func() uint64) *MocknodePeerCounterPeerCountCall
Do rewrite *gomock.Call.Do
func (*MocknodePeerCounterPeerCountCall) DoAndReturn ¶ added in v1.4.5
func (c *MocknodePeerCounterPeerCountCall) DoAndReturn(f func() uint64) *MocknodePeerCounterPeerCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocknodePeerCounterPeerCountCall) Return ¶ added in v1.4.5
func (c *MocknodePeerCounterPeerCountCall) Return(arg0 uint64) *MocknodePeerCounterPeerCountCall
Return rewrite *gomock.Call.Return
type MocknodeSyncer ¶ added in v1.4.5
type MocknodeSyncer struct {
// contains filtered or unexported fields
}
MocknodeSyncer is a mock of nodeSyncer interface.
func NewMocknodeSyncer ¶ added in v1.4.5
func NewMocknodeSyncer(ctrl *gomock.Controller) *MocknodeSyncer
NewMocknodeSyncer creates a new mock instance.
func (*MocknodeSyncer) EXPECT ¶ added in v1.4.5
func (m *MocknodeSyncer) EXPECT() *MocknodeSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocknodeSyncerIsSyncedCall ¶ added in v1.4.5
MocknodeSyncerIsSyncedCall wrap *gomock.Call
func (*MocknodeSyncerIsSyncedCall) Do ¶ added in v1.4.5
func (c *MocknodeSyncerIsSyncedCall) Do(f func(context.Context) bool) *MocknodeSyncerIsSyncedCall
Do rewrite *gomock.Call.Do
func (*MocknodeSyncerIsSyncedCall) DoAndReturn ¶ added in v1.4.5
func (c *MocknodeSyncerIsSyncedCall) DoAndReturn(f func(context.Context) bool) *MocknodeSyncerIsSyncedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocknodeSyncerIsSyncedCall) Return ¶ added in v1.4.5
func (c *MocknodeSyncerIsSyncedCall) Return(arg0 bool) *MocknodeSyncerIsSyncedCall
Return rewrite *gomock.Call.Return
type MocknodeSyncerMockRecorder ¶ added in v1.4.5
type MocknodeSyncerMockRecorder struct {
// contains filtered or unexported fields
}
MocknodeSyncerMockRecorder is the mock recorder for MocknodeSyncer.
func (*MocknodeSyncerMockRecorder) IsSynced ¶ added in v1.4.5
func (mr *MocknodeSyncerMockRecorder) IsSynced(arg0 any) *MocknodeSyncerIsSyncedCall
IsSynced indicates an expected call of IsSynced.
type MocktransactionConState ¶ added in v1.6.0
type MocktransactionConState struct {
// contains filtered or unexported fields
}
MocktransactionConState is a mock of transactionConState interface.
func NewMocktransactionConState ¶ added in v1.6.0
func NewMocktransactionConState(ctrl *gomock.Controller) *MocktransactionConState
NewMocktransactionConState creates a new mock instance.
func (*MocktransactionConState) EXPECT ¶ added in v1.6.0
func (m *MocktransactionConState) EXPECT() *MocktransactionConStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktransactionConState) Validation ¶ added in v1.6.0
func (m *MocktransactionConState) Validation(raw types.RawTx) system.ValidationRequest
Validation mocks base method.
type MocktransactionConStateMockRecorder ¶ added in v1.6.0
type MocktransactionConStateMockRecorder struct {
// contains filtered or unexported fields
}
MocktransactionConStateMockRecorder is the mock recorder for MocktransactionConState.
func (*MocktransactionConStateMockRecorder) Validation ¶ added in v1.6.0
func (mr *MocktransactionConStateMockRecorder) Validation(raw any) *MocktransactionConStateValidationCall
Validation indicates an expected call of Validation.
type MocktransactionConStateValidationCall ¶ added in v1.6.0
MocktransactionConStateValidationCall wrap *gomock.Call
func (*MocktransactionConStateValidationCall) Do ¶ added in v1.6.0
func (c *MocktransactionConStateValidationCall) Do(f func(types.RawTx) system.ValidationRequest) *MocktransactionConStateValidationCall
Do rewrite *gomock.Call.Do
func (*MocktransactionConStateValidationCall) DoAndReturn ¶ added in v1.6.0
func (c *MocktransactionConStateValidationCall) DoAndReturn(f func(types.RawTx) system.ValidationRequest) *MocktransactionConStateValidationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktransactionConStateValidationCall) Return ¶ added in v1.6.0
func (c *MocktransactionConStateValidationCall) Return(arg0 system.ValidationRequest) *MocktransactionConStateValidationCall
Return rewrite *gomock.Call.Return
type MocktransactionSyncer ¶ added in v1.6.0
type MocktransactionSyncer struct {
// contains filtered or unexported fields
}
MocktransactionSyncer is a mock of transactionSyncer interface.
func NewMocktransactionSyncer ¶ added in v1.6.0
func NewMocktransactionSyncer(ctrl *gomock.Controller) *MocktransactionSyncer
NewMocktransactionSyncer creates a new mock instance.
func (*MocktransactionSyncer) EXPECT ¶ added in v1.6.0
func (m *MocktransactionSyncer) EXPECT() *MocktransactionSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktransactionSyncerIsSyncedCall ¶ added in v1.6.0
MocktransactionSyncerIsSyncedCall wrap *gomock.Call
func (*MocktransactionSyncerIsSyncedCall) Do ¶ added in v1.6.0
func (c *MocktransactionSyncerIsSyncedCall) Do(f func(context.Context) bool) *MocktransactionSyncerIsSyncedCall
Do rewrite *gomock.Call.Do
func (*MocktransactionSyncerIsSyncedCall) DoAndReturn ¶ added in v1.6.0
func (c *MocktransactionSyncerIsSyncedCall) DoAndReturn(f func(context.Context) bool) *MocktransactionSyncerIsSyncedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktransactionSyncerIsSyncedCall) Return ¶ added in v1.6.0
func (c *MocktransactionSyncerIsSyncedCall) Return(arg0 bool) *MocktransactionSyncerIsSyncedCall
Return rewrite *gomock.Call.Return
type MocktransactionSyncerMockRecorder ¶ added in v1.6.0
type MocktransactionSyncerMockRecorder struct {
// contains filtered or unexported fields
}
MocktransactionSyncerMockRecorder is the mock recorder for MocktransactionSyncer.
func (*MocktransactionSyncerMockRecorder) IsSynced ¶ added in v1.6.0
func (mr *MocktransactionSyncerMockRecorder) IsSynced(arg0 any) *MocktransactionSyncerIsSyncedCall
IsSynced indicates an expected call of IsSynced.
type MocktransactionValidator ¶ added in v1.6.0
type MocktransactionValidator struct {
// contains filtered or unexported fields
}
MocktransactionValidator is a mock of transactionValidator interface.
func NewMocktransactionValidator ¶ added in v1.6.0
func NewMocktransactionValidator(ctrl *gomock.Controller) *MocktransactionValidator
NewMocktransactionValidator creates a new mock instance.
func (*MocktransactionValidator) EXPECT ¶ added in v1.6.0
func (m *MocktransactionValidator) EXPECT() *MocktransactionValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktransactionValidator) VerifyAndCacheTx ¶ added in v1.6.0
func (m *MocktransactionValidator) VerifyAndCacheTx(arg0 context.Context, arg1 []byte) error
VerifyAndCacheTx mocks base method.
type MocktransactionValidatorMockRecorder ¶ added in v1.6.0
type MocktransactionValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MocktransactionValidatorMockRecorder is the mock recorder for MocktransactionValidator.
func (*MocktransactionValidatorMockRecorder) VerifyAndCacheTx ¶ added in v1.6.0
func (mr *MocktransactionValidatorMockRecorder) VerifyAndCacheTx(arg0, arg1 any) *MocktransactionValidatorVerifyAndCacheTxCall
VerifyAndCacheTx indicates an expected call of VerifyAndCacheTx.
type MocktransactionValidatorVerifyAndCacheTxCall ¶ added in v1.6.0
MocktransactionValidatorVerifyAndCacheTxCall wrap *gomock.Call
func (*MocktransactionValidatorVerifyAndCacheTxCall) Do ¶ added in v1.6.0
func (c *MocktransactionValidatorVerifyAndCacheTxCall) Do(f func(context.Context, []byte) error) *MocktransactionValidatorVerifyAndCacheTxCall
Do rewrite *gomock.Call.Do
func (*MocktransactionValidatorVerifyAndCacheTxCall) DoAndReturn ¶ added in v1.6.0
func (c *MocktransactionValidatorVerifyAndCacheTxCall) DoAndReturn(f func(context.Context, []byte) error) *MocktransactionValidatorVerifyAndCacheTxCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktransactionValidatorVerifyAndCacheTxCall) Return ¶ added in v1.6.0
func (c *MocktransactionValidatorVerifyAndCacheTxCall) Return(arg0 error) *MocktransactionValidatorVerifyAndCacheTxCall
Return rewrite *gomock.Call.Return
type NetworkService ¶ added in v1.4.3
type NetworkService struct {
// contains filtered or unexported fields
}
func NewNetworkService ¶ added in v1.4.3
func (*NetworkService) Info ¶ added in v1.4.3
func (s *NetworkService) Info(context.Context, *spacemeshv2alpha1.NetworkInfoRequest, ) (*spacemeshv2alpha1.NetworkInfoResponse, error)
func (*NetworkService) RegisterHandlerService ¶ added in v1.4.3
func (s *NetworkService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*NetworkService) RegisterService ¶ added in v1.4.3
func (s *NetworkService) RegisterService(server *grpc.Server)
func (*NetworkService) String ¶ added in v1.4.3
func (s *NetworkService) String() string
String returns the service name.
type NodeService ¶ added in v1.4.5
type NodeService struct {
// contains filtered or unexported fields
}
func NewNodeService ¶ added in v1.4.5
func NewNodeService(peers nodePeerCounter, msh nodeMeshAPI, clock *timesync.NodeClock, syncer nodeSyncer) *NodeService
func (*NodeService) RegisterHandlerService ¶ added in v1.4.5
func (s *NodeService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*NodeService) RegisterService ¶ added in v1.4.5
func (s *NodeService) RegisterService(server *grpc.Server)
func (*NodeService) Status ¶ added in v1.4.5
func (s *NodeService) Status(ctx context.Context, _ *spacemeshv2alpha1.NodeStatusRequest) ( *spacemeshv2alpha1.NodeStatusResponse, error, )
func (*NodeService) String ¶ added in v1.4.5
func (s *NodeService) String() string
String returns the service name.
type RewardService ¶
type RewardService struct {
// contains filtered or unexported fields
}
func NewRewardService ¶
func NewRewardService(db sql.Executor) *RewardService
func (*RewardService) List ¶
func (s *RewardService) List( ctx context.Context, request *spacemeshv2alpha1.RewardRequest, ) (*spacemeshv2alpha1.RewardList, error)
func (*RewardService) RegisterHandlerService ¶
func (s *RewardService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*RewardService) RegisterService ¶
func (s *RewardService) RegisterService(server *grpc.Server)
func (*RewardService) String ¶
func (s *RewardService) String() string
String returns the service name.
type RewardStreamService ¶
type RewardStreamService struct {
// contains filtered or unexported fields
}
func NewRewardStreamService ¶
func NewRewardStreamService(db sql.Executor) *RewardStreamService
func (*RewardStreamService) RegisterHandlerService ¶
func (s *RewardStreamService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*RewardStreamService) RegisterService ¶
func (s *RewardStreamService) RegisterService(server *grpc.Server)
func (*RewardStreamService) Stream ¶
func (s *RewardStreamService) Stream( request *spacemeshv2alpha1.RewardStreamRequest, stream spacemeshv2alpha1.RewardStreamService_StreamServer, ) error
func (*RewardStreamService) String ¶
func (s *RewardStreamService) String() string
type TransactionService ¶ added in v1.6.0
type TransactionService struct {
// contains filtered or unexported fields
}
func NewTransactionService ¶ added in v1.6.0
func NewTransactionService(db sql.Executor, conState transactionConState, syncer transactionSyncer, validator transactionValidator, publisher pubsub.Publisher, ) *TransactionService
func (*TransactionService) EstimateGas ¶ added in v1.6.0
func (s *TransactionService) EstimateGas( ctx context.Context, request *spacemeshv2alpha1.EstimateGasRequest, ) (*spacemeshv2alpha1.EstimateGasResponse, error)
func (*TransactionService) List ¶ added in v1.6.0
func (s *TransactionService) List( ctx context.Context, request *spacemeshv2alpha1.TransactionRequest, ) (*spacemeshv2alpha1.TransactionList, error)
func (*TransactionService) ParseTransaction ¶ added in v1.6.0
func (s *TransactionService) ParseTransaction( ctx context.Context, request *spacemeshv2alpha1.ParseTransactionRequest, ) (*spacemeshv2alpha1.ParseTransactionResponse, error)
func (*TransactionService) RegisterHandlerService ¶ added in v1.6.0
func (s *TransactionService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*TransactionService) RegisterService ¶ added in v1.6.0
func (s *TransactionService) RegisterService(server *grpc.Server)
func (*TransactionService) String ¶ added in v1.6.0
func (s *TransactionService) String() string
String returns the service name.
func (*TransactionService) SubmitTransaction ¶ added in v1.6.0
func (s *TransactionService) SubmitTransaction( ctx context.Context, request *spacemeshv2alpha1.SubmitTransactionRequest, ) (*spacemeshv2alpha1.SubmitTransactionResponse, error)
type TransactionStreamService ¶ added in v1.6.0
type TransactionStreamService struct {
// contains filtered or unexported fields
}
func NewTransactionStreamService ¶ added in v1.6.0
func NewTransactionStreamService(db sql.Executor) *TransactionStreamService
func (*TransactionStreamService) RegisterHandlerService ¶ added in v1.6.0
func (s *TransactionStreamService) RegisterHandlerService(mux *runtime.ServeMux) error
func (*TransactionStreamService) RegisterService ¶ added in v1.6.0
func (s *TransactionStreamService) RegisterService(server *grpc.Server)
func (*TransactionStreamService) Stream ¶ added in v1.6.0
func (s *TransactionStreamService) Stream( request *spacemeshv2alpha1.TransactionStreamRequest, stream spacemeshv2alpha1.TransactionStreamService_StreamServer, ) error
func (*TransactionStreamService) String ¶ added in v1.6.0
func (s *TransactionStreamService) String() string