Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterManuscriptNodeServiceServer(s grpc.ServiceRegistrar, srv ManuscriptNodeServiceServer)
- type ManuscriptNodeServiceClient
- type ManuscriptNodeServiceServer
- type NewTaskRequest
- func (*NewTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewTaskRequest) GetTask() *Task
- func (x *NewTaskRequest) GetTaskIndex() uint32
- func (*NewTaskRequest) ProtoMessage()
- func (x *NewTaskRequest) ProtoReflect() protoreflect.Message
- func (x *NewTaskRequest) Reset()
- func (x *NewTaskRequest) String() string
- type NewTaskResponse
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetQuorumNumbers() []byte
- func (x *Task) GetQuorumThresholdPercentage() uint32
- func (x *Task) GetTaskCreatedBlock() uint32
- func (x *Task) GetTaskDetails() string
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type UnimplementedManuscriptNodeServiceServer
- type UnsafeManuscriptNodeServiceServer
Constants ¶
const (
ManuscriptNodeService_ReceiveNewTask_FullMethodName = "/node.ManuscriptNodeService/ReceiveNewTask"
)
Variables ¶
var File_node_proto protoreflect.FileDescriptor
var ManuscriptNodeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "node.ManuscriptNodeService", HandlerType: (*ManuscriptNodeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReceiveNewTask", Handler: _ManuscriptNodeService_ReceiveNewTask_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "node.proto", }
ManuscriptNodeService_ServiceDesc is the grpc.ServiceDesc for ManuscriptNodeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterManuscriptNodeServiceServer ¶
func RegisterManuscriptNodeServiceServer(s grpc.ServiceRegistrar, srv ManuscriptNodeServiceServer)
Types ¶
type ManuscriptNodeServiceClient ¶
type ManuscriptNodeServiceClient interface {
ReceiveNewTask(ctx context.Context, in *NewTaskRequest, opts ...grpc.CallOption) (*NewTaskResponse, error)
}
ManuscriptNodeServiceClient is the client API for ManuscriptNodeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewManuscriptNodeServiceClient ¶
func NewManuscriptNodeServiceClient(cc grpc.ClientConnInterface) ManuscriptNodeServiceClient
type ManuscriptNodeServiceServer ¶
type ManuscriptNodeServiceServer interface { ReceiveNewTask(context.Context, *NewTaskRequest) (*NewTaskResponse, error) // contains filtered or unexported methods }
ManuscriptNodeServiceServer is the server API for ManuscriptNodeService service. All implementations must embed UnimplementedManuscriptNodeServiceServer for forward compatibility.
type NewTaskRequest ¶
type NewTaskRequest struct { TaskIndex uint32 `protobuf:"varint,1,opt,name=task_index,json=taskIndex,proto3" json:"task_index,omitempty"` Task *Task `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` // contains filtered or unexported fields }
func (*NewTaskRequest) Descriptor
deprecated
func (*NewTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewTaskRequest.ProtoReflect.Descriptor instead.
func (*NewTaskRequest) GetTask ¶
func (x *NewTaskRequest) GetTask() *Task
func (*NewTaskRequest) GetTaskIndex ¶
func (x *NewTaskRequest) GetTaskIndex() uint32
func (*NewTaskRequest) ProtoMessage ¶
func (*NewTaskRequest) ProtoMessage()
func (*NewTaskRequest) ProtoReflect ¶
func (x *NewTaskRequest) ProtoReflect() protoreflect.Message
func (*NewTaskRequest) Reset ¶
func (x *NewTaskRequest) Reset()
func (*NewTaskRequest) String ¶
func (x *NewTaskRequest) String() string
type NewTaskResponse ¶
type NewTaskResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*NewTaskResponse) Descriptor
deprecated
func (*NewTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewTaskResponse.ProtoReflect.Descriptor instead.
func (*NewTaskResponse) GetSuccess ¶
func (x *NewTaskResponse) GetSuccess() bool
func (*NewTaskResponse) ProtoMessage ¶
func (*NewTaskResponse) ProtoMessage()
func (*NewTaskResponse) ProtoReflect ¶
func (x *NewTaskResponse) ProtoReflect() protoreflect.Message
func (*NewTaskResponse) Reset ¶
func (x *NewTaskResponse) Reset()
func (*NewTaskResponse) String ¶
func (x *NewTaskResponse) String() string
type Task ¶
type Task struct { TaskDetails string `protobuf:"bytes,1,opt,name=task_details,json=taskDetails,proto3" json:"task_details,omitempty"` TaskCreatedBlock uint32 `protobuf:"varint,2,opt,name=task_created_block,json=taskCreatedBlock,proto3" json:"task_created_block,omitempty"` QuorumNumbers []byte `protobuf:"bytes,3,opt,name=quorum_numbers,json=quorumNumbers,proto3" json:"quorum_numbers,omitempty"` QuorumThresholdPercentage uint32 `` /* 139-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetQuorumNumbers ¶
func (*Task) GetQuorumThresholdPercentage ¶
func (*Task) GetTaskCreatedBlock ¶
func (*Task) GetTaskDetails ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UnimplementedManuscriptNodeServiceServer ¶
type UnimplementedManuscriptNodeServiceServer struct{}
UnimplementedManuscriptNodeServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedManuscriptNodeServiceServer) ReceiveNewTask ¶
func (UnimplementedManuscriptNodeServiceServer) ReceiveNewTask(context.Context, *NewTaskRequest) (*NewTaskResponse, error)
type UnsafeManuscriptNodeServiceServer ¶
type UnsafeManuscriptNodeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeManuscriptNodeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManuscriptNodeServiceServer will result in compilation errors.