Documentation ¶
Index ¶
- Variables
- func RegisterFeedsManagerServer(s wsrpc.ServiceRegistrar, srv FeedsManagerServer)
- func RegisterNodeServiceServer(s wsrpc.ServiceRegistrar, srv NodeServiceServer)
- type ApprovedJobRequest
- func (*ApprovedJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApprovedJobRequest) GetUuid() string
- func (*ApprovedJobRequest) ProtoMessage()
- func (x *ApprovedJobRequest) ProtoReflect() protoreflect.Message
- func (x *ApprovedJobRequest) Reset()
- func (x *ApprovedJobRequest) String() string
- type ApprovedJobResponse
- type CancelledJobRequest
- func (*CancelledJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelledJobRequest) GetUuid() string
- func (*CancelledJobRequest) ProtoMessage()
- func (x *CancelledJobRequest) ProtoReflect() protoreflect.Message
- func (x *CancelledJobRequest) Reset()
- func (x *CancelledJobRequest) String() string
- type CancelledJobResponse
- type FeedsManagerClient
- type FeedsManagerServer
- type JobType
- type NodeServiceClient
- type NodeServiceServer
- type ProposeJobRequest
- func (*ProposeJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProposeJobRequest) GetId() string
- func (x *ProposeJobRequest) GetMultiaddrs() []string
- func (x *ProposeJobRequest) GetSpec() string
- func (*ProposeJobRequest) ProtoMessage()
- func (x *ProposeJobRequest) ProtoReflect() protoreflect.Message
- func (x *ProposeJobRequest) Reset()
- func (x *ProposeJobRequest) String() string
- type ProposeJobResponse
- type RejectedJobRequest
- func (*RejectedJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RejectedJobRequest) GetUuid() string
- func (*RejectedJobRequest) ProtoMessage()
- func (x *RejectedJobRequest) ProtoReflect() protoreflect.Message
- func (x *RejectedJobRequest) Reset()
- func (x *RejectedJobRequest) String() string
- type RejectedJobResponse
- type UpdateNodeRequest
- func (*UpdateNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNodeRequest) GetAccountAddresses() []string
- func (x *UpdateNodeRequest) GetBootstrapMultiaddr() string
- func (x *UpdateNodeRequest) GetChainId() int64
- func (x *UpdateNodeRequest) GetChainIds() []int64
- func (x *UpdateNodeRequest) GetIsBootstrapPeer() bool
- func (x *UpdateNodeRequest) GetJobTypes() []JobType
- func (x *UpdateNodeRequest) GetVersion() string
- func (*UpdateNodeRequest) ProtoMessage()
- func (x *UpdateNodeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNodeRequest) Reset()
- func (x *UpdateNodeRequest) String() string
- type UpdateNodeResponse
Constants ¶
This section is empty.
Variables ¶
var ( JobType_name = map[int32]string{ 0: "JOB_TYPE_UNSPECIFIED", 1: "JOB_TYPE_FLUX_MONITOR", 2: "JOB_TYPE_OCR", } JobType_value = map[string]int32{ "JOB_TYPE_UNSPECIFIED": 0, "JOB_TYPE_FLUX_MONITOR": 1, "JOB_TYPE_OCR": 2, } )
Enum value maps for JobType.
var FeedsManager_ServiceDesc = wsrpc.ServiceDesc{ ServiceName: "cfm.FeedsManager", HandlerType: (*FeedsManagerServer)(nil), Methods: []wsrpc.MethodDesc{ { MethodName: "ApprovedJob", Handler: _FeedsManager_ApprovedJob_Handler, }, { MethodName: "UpdateNode", Handler: _FeedsManager_UpdateNode_Handler, }, { MethodName: "RejectedJob", Handler: _FeedsManager_RejectedJob_Handler, }, { MethodName: "CancelledJob", Handler: _FeedsManager_CancelledJob_Handler, }, }, }
FeedsManager_ServiceDesc is the wsrpc.ServiceDesc for FeedsManager service. It's only intended for direct use with wsrpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_noderpc_proto_feeds_manager_proto protoreflect.FileDescriptor
var NodeService_ServiceDesc = wsrpc.ServiceDesc{ ServiceName: "cfm.NodeService", HandlerType: (*NodeServiceServer)(nil), Methods: []wsrpc.MethodDesc{ { MethodName: "ProposeJob", Handler: _NodeService_ProposeJob_Handler, }, }, }
NodeService_ServiceDesc is the wsrpc.ServiceDesc for NodeService service. It's only intended for direct use with wsrpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFeedsManagerServer ¶
func RegisterFeedsManagerServer(s wsrpc.ServiceRegistrar, srv FeedsManagerServer)
func RegisterNodeServiceServer ¶
func RegisterNodeServiceServer(s wsrpc.ServiceRegistrar, srv NodeServiceServer)
Types ¶
type ApprovedJobRequest ¶
type ApprovedJobRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*ApprovedJobRequest) Descriptor
deprecated
func (*ApprovedJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApprovedJobRequest.ProtoReflect.Descriptor instead.
func (*ApprovedJobRequest) GetUuid ¶
func (x *ApprovedJobRequest) GetUuid() string
func (*ApprovedJobRequest) ProtoMessage ¶
func (*ApprovedJobRequest) ProtoMessage()
func (*ApprovedJobRequest) ProtoReflect ¶
func (x *ApprovedJobRequest) ProtoReflect() protoreflect.Message
func (*ApprovedJobRequest) Reset ¶
func (x *ApprovedJobRequest) Reset()
func (*ApprovedJobRequest) String ¶
func (x *ApprovedJobRequest) String() string
type ApprovedJobResponse ¶
type ApprovedJobResponse struct {
// contains filtered or unexported fields
}
func (*ApprovedJobResponse) Descriptor
deprecated
func (*ApprovedJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApprovedJobResponse.ProtoReflect.Descriptor instead.
func (*ApprovedJobResponse) ProtoMessage ¶
func (*ApprovedJobResponse) ProtoMessage()
func (*ApprovedJobResponse) ProtoReflect ¶
func (x *ApprovedJobResponse) ProtoReflect() protoreflect.Message
func (*ApprovedJobResponse) Reset ¶
func (x *ApprovedJobResponse) Reset()
func (*ApprovedJobResponse) String ¶
func (x *ApprovedJobResponse) String() string
type CancelledJobRequest ¶ added in v1.10.17
type CancelledJobRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*CancelledJobRequest) Descriptor
deprecated
added in
v1.10.17
func (*CancelledJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelledJobRequest.ProtoReflect.Descriptor instead.
func (*CancelledJobRequest) GetUuid ¶ added in v1.10.17
func (x *CancelledJobRequest) GetUuid() string
func (*CancelledJobRequest) ProtoMessage ¶ added in v1.10.17
func (*CancelledJobRequest) ProtoMessage()
func (*CancelledJobRequest) ProtoReflect ¶ added in v1.10.17
func (x *CancelledJobRequest) ProtoReflect() protoreflect.Message
func (*CancelledJobRequest) Reset ¶ added in v1.10.17
func (x *CancelledJobRequest) Reset()
func (*CancelledJobRequest) String ¶ added in v1.10.17
func (x *CancelledJobRequest) String() string
type CancelledJobResponse ¶ added in v1.10.17
type CancelledJobResponse struct {
// contains filtered or unexported fields
}
func (*CancelledJobResponse) Descriptor
deprecated
added in
v1.10.17
func (*CancelledJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelledJobResponse.ProtoReflect.Descriptor instead.
func (*CancelledJobResponse) ProtoMessage ¶ added in v1.10.17
func (*CancelledJobResponse) ProtoMessage()
func (*CancelledJobResponse) ProtoReflect ¶ added in v1.10.17
func (x *CancelledJobResponse) ProtoReflect() protoreflect.Message
func (*CancelledJobResponse) Reset ¶ added in v1.10.17
func (x *CancelledJobResponse) Reset()
func (*CancelledJobResponse) String ¶ added in v1.10.17
func (x *CancelledJobResponse) String() string
type FeedsManagerClient ¶
type FeedsManagerClient interface { ApprovedJob(ctx context.Context, in *ApprovedJobRequest) (*ApprovedJobResponse, error) UpdateNode(ctx context.Context, in *UpdateNodeRequest) (*UpdateNodeResponse, error) RejectedJob(ctx context.Context, in *RejectedJobRequest) (*RejectedJobResponse, error) CancelledJob(ctx context.Context, in *CancelledJobRequest) (*CancelledJobResponse, error) }
FeedsManagerClient is the client API for FeedsManager service.
func NewFeedsManagerClient ¶
func NewFeedsManagerClient(cc wsrpc.ClientInterface) FeedsManagerClient
type FeedsManagerServer ¶
type FeedsManagerServer interface { ApprovedJob(context.Context, *ApprovedJobRequest) (*ApprovedJobResponse, error) UpdateNode(context.Context, *UpdateNodeRequest) (*UpdateNodeResponse, error) RejectedJob(context.Context, *RejectedJobRequest) (*RejectedJobResponse, error) CancelledJob(context.Context, *CancelledJobRequest) (*CancelledJobResponse, error) }
FeedsManagerServer is the server API for FeedsManager service.
type JobType ¶
type JobType int32
func (JobType) Descriptor ¶
func (JobType) Descriptor() protoreflect.EnumDescriptor
func (JobType) EnumDescriptor
deprecated
func (JobType) Number ¶
func (x JobType) Number() protoreflect.EnumNumber
func (JobType) Type ¶
func (JobType) Type() protoreflect.EnumType
type NodeServiceClient ¶
type NodeServiceClient interface {
ProposeJob(ctx context.Context, in *ProposeJobRequest) (*ProposeJobResponse, error)
}
NodeServiceClient is the client API for NodeService service.
func NewNodeServiceClient ¶
func NewNodeServiceClient(cc wsrpc.ClientInterface) NodeServiceClient
type NodeServiceServer ¶
type NodeServiceServer interface {
ProposeJob(context.Context, *ProposeJobRequest) (*ProposeJobResponse, error)
}
NodeServiceServer is the server API for NodeService service.
type ProposeJobRequest ¶
type ProposeJobRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Spec string `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` Multiaddrs []string `protobuf:"bytes,3,rep,name=multiaddrs,proto3" json:"multiaddrs,omitempty"` // contains filtered or unexported fields }
func (*ProposeJobRequest) Descriptor
deprecated
func (*ProposeJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProposeJobRequest.ProtoReflect.Descriptor instead.
func (*ProposeJobRequest) GetId ¶
func (x *ProposeJobRequest) GetId() string
func (*ProposeJobRequest) GetMultiaddrs ¶ added in v1.10.17
func (x *ProposeJobRequest) GetMultiaddrs() []string
func (*ProposeJobRequest) GetSpec ¶
func (x *ProposeJobRequest) GetSpec() string
func (*ProposeJobRequest) ProtoMessage ¶
func (*ProposeJobRequest) ProtoMessage()
func (*ProposeJobRequest) ProtoReflect ¶
func (x *ProposeJobRequest) ProtoReflect() protoreflect.Message
func (*ProposeJobRequest) Reset ¶
func (x *ProposeJobRequest) Reset()
func (*ProposeJobRequest) String ¶
func (x *ProposeJobRequest) String() string
type ProposeJobResponse ¶
type ProposeJobResponse struct { Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ProposeJobResponse) Descriptor
deprecated
func (*ProposeJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProposeJobResponse.ProtoReflect.Descriptor instead.
func (*ProposeJobResponse) GetId ¶
func (x *ProposeJobResponse) GetId() string
func (*ProposeJobResponse) ProtoMessage ¶
func (*ProposeJobResponse) ProtoMessage()
func (*ProposeJobResponse) ProtoReflect ¶
func (x *ProposeJobResponse) ProtoReflect() protoreflect.Message
func (*ProposeJobResponse) Reset ¶
func (x *ProposeJobResponse) Reset()
func (*ProposeJobResponse) String ¶
func (x *ProposeJobResponse) String() string
type RejectedJobRequest ¶
type RejectedJobRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*RejectedJobRequest) Descriptor
deprecated
func (*RejectedJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use RejectedJobRequest.ProtoReflect.Descriptor instead.
func (*RejectedJobRequest) GetUuid ¶
func (x *RejectedJobRequest) GetUuid() string
func (*RejectedJobRequest) ProtoMessage ¶
func (*RejectedJobRequest) ProtoMessage()
func (*RejectedJobRequest) ProtoReflect ¶
func (x *RejectedJobRequest) ProtoReflect() protoreflect.Message
func (*RejectedJobRequest) Reset ¶
func (x *RejectedJobRequest) Reset()
func (*RejectedJobRequest) String ¶
func (x *RejectedJobRequest) String() string
type RejectedJobResponse ¶
type RejectedJobResponse struct {
// contains filtered or unexported fields
}
func (*RejectedJobResponse) Descriptor
deprecated
func (*RejectedJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use RejectedJobResponse.ProtoReflect.Descriptor instead.
func (*RejectedJobResponse) ProtoMessage ¶
func (*RejectedJobResponse) ProtoMessage()
func (*RejectedJobResponse) ProtoReflect ¶
func (x *RejectedJobResponse) ProtoReflect() protoreflect.Message
func (*RejectedJobResponse) Reset ¶
func (x *RejectedJobResponse) Reset()
func (*RejectedJobResponse) String ¶
func (x *RejectedJobResponse) String() string
type UpdateNodeRequest ¶
type UpdateNodeRequest struct { JobTypes []JobType `protobuf:"varint,1,rep,packed,name=job_types,json=jobTypes,proto3,enum=cfm.JobType" json:"job_types,omitempty"` ChainId int64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` AccountAddresses []string `protobuf:"bytes,3,rep,name=account_addresses,json=accountAddresses,proto3" json:"account_addresses,omitempty"` IsBootstrapPeer bool `protobuf:"varint,4,opt,name=is_bootstrap_peer,json=isBootstrapPeer,proto3" json:"is_bootstrap_peer,omitempty"` BootstrapMultiaddr string `protobuf:"bytes,5,opt,name=bootstrap_multiaddr,json=bootstrapMultiaddr,proto3" json:"bootstrap_multiaddr,omitempty"` Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` ChainIds []int64 `protobuf:"varint,7,rep,packed,name=chain_ids,json=chainIds,proto3" json:"chain_ids,omitempty"` // contains filtered or unexported fields }
func (*UpdateNodeRequest) Descriptor
deprecated
func (*UpdateNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNodeRequest.ProtoReflect.Descriptor instead.
func (*UpdateNodeRequest) GetAccountAddresses ¶
func (x *UpdateNodeRequest) GetAccountAddresses() []string
func (*UpdateNodeRequest) GetBootstrapMultiaddr ¶
func (x *UpdateNodeRequest) GetBootstrapMultiaddr() string
func (*UpdateNodeRequest) GetChainId ¶
func (x *UpdateNodeRequest) GetChainId() int64
func (*UpdateNodeRequest) GetChainIds ¶ added in v1.10.17
func (x *UpdateNodeRequest) GetChainIds() []int64
func (*UpdateNodeRequest) GetIsBootstrapPeer ¶
func (x *UpdateNodeRequest) GetIsBootstrapPeer() bool
func (*UpdateNodeRequest) GetJobTypes ¶
func (x *UpdateNodeRequest) GetJobTypes() []JobType
func (*UpdateNodeRequest) GetVersion ¶ added in v1.10.17
func (x *UpdateNodeRequest) GetVersion() string
func (*UpdateNodeRequest) ProtoMessage ¶
func (*UpdateNodeRequest) ProtoMessage()
func (*UpdateNodeRequest) ProtoReflect ¶
func (x *UpdateNodeRequest) ProtoReflect() protoreflect.Message
func (*UpdateNodeRequest) Reset ¶
func (x *UpdateNodeRequest) Reset()
func (*UpdateNodeRequest) String ¶
func (x *UpdateNodeRequest) String() string
type UpdateNodeResponse ¶
type UpdateNodeResponse struct {
// contains filtered or unexported fields
}
func (*UpdateNodeResponse) Descriptor
deprecated
func (*UpdateNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNodeResponse.ProtoReflect.Descriptor instead.
func (*UpdateNodeResponse) ProtoMessage ¶
func (*UpdateNodeResponse) ProtoMessage()
func (*UpdateNodeResponse) ProtoReflect ¶
func (x *UpdateNodeResponse) ProtoReflect() protoreflect.Message
func (*UpdateNodeResponse) Reset ¶
func (x *UpdateNodeResponse) Reset()
func (*UpdateNodeResponse) String ¶
func (x *UpdateNodeResponse) String() string