Documentation ¶
Overview ¶
Package v2alpha1 is a generated GoMock package.
Index ¶
- Constants
- 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 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 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
Constants ¶
const ( Activation = "activation_v2alpha1" ActivationStream = "activation_stream_v2alpha1" )
const ( Reward = "reward_v2alpha1" RewardStream = "reward_stream_v2alpha1" )
const (
Network = "network_v2alpha1"
)
const (
Node = "node_v2alpha1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 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