node

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManuscriptNodeService_ReceiveNewTask_FullMethodName = "/node.ManuscriptNodeService/ReceiveNewTask"
)

Variables

View Source
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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetQuorumNumbers

func (x *Task) GetQuorumNumbers() []byte

func (*Task) GetQuorumThresholdPercentage

func (x *Task) GetQuorumThresholdPercentage() uint32

func (*Task) GetTaskCreatedBlock

func (x *Task) GetTaskCreatedBlock() uint32

func (*Task) GetTaskDetails

func (x *Task) GetTaskDetails() string

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL