coordinator

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoordinatorService_ProcessSignedTaskResponse_FullMethodName = "/coordinator.CoordinatorService/ProcessSignedTaskResponse"
)

Variables

View Source
var CoordinatorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "coordinator.CoordinatorService",
	HandlerType: (*CoordinatorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ProcessSignedTaskResponse",
			Handler:    _CoordinatorService_ProcessSignedTaskResponse_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "coordinator.proto",
}

CoordinatorService_ServiceDesc is the grpc.ServiceDesc for CoordinatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_coordinator_proto protoreflect.FileDescriptor

Functions

func RegisterCoordinatorServiceServer

func RegisterCoordinatorServiceServer(s grpc.ServiceRegistrar, srv CoordinatorServiceServer)

Types

type CoordinatorServiceClient

type CoordinatorServiceClient interface {
	ProcessSignedTaskResponse(ctx context.Context, in *SignedTaskResponseRequest, opts ...grpc.CallOption) (*SignedTaskResponseReply, error)
}

CoordinatorServiceClient is the client API for CoordinatorService 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 CoordinatorServiceServer

type CoordinatorServiceServer interface {
	ProcessSignedTaskResponse(context.Context, *SignedTaskResponseRequest) (*SignedTaskResponseReply, error)
	// contains filtered or unexported methods
}

CoordinatorServiceServer is the server API for CoordinatorService service. All implementations must embed UnimplementedCoordinatorServiceServer for forward compatibility.

type G1Point

type G1Point struct {
	X []uint64 `protobuf:"varint,1,rep,packed,name=x,proto3" json:"x,omitempty"` // 4 uint64 values
	Y []uint64 `protobuf:"varint,2,rep,packed,name=y,proto3" json:"y,omitempty"` // 4 uint64 values
	// contains filtered or unexported fields
}

func (*G1Point) Descriptor deprecated

func (*G1Point) Descriptor() ([]byte, []int)

Deprecated: Use G1Point.ProtoReflect.Descriptor instead.

func (*G1Point) GetX

func (x *G1Point) GetX() []uint64

func (*G1Point) GetY

func (x *G1Point) GetY() []uint64

func (*G1Point) ProtoMessage

func (*G1Point) ProtoMessage()

func (*G1Point) ProtoReflect

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

func (*G1Point) Reset

func (x *G1Point) Reset()

func (*G1Point) String

func (x *G1Point) String() string

type IChainbaseServiceManagerTaskResponse

type IChainbaseServiceManagerTaskResponse struct {
	ReferenceTaskIndex uint32 `protobuf:"varint,1,opt,name=reference_task_index,json=referenceTaskIndex,proto3" json:"reference_task_index,omitempty"`
	TaskResponse       string `protobuf:"bytes,2,opt,name=task_response,json=taskResponse,proto3" json:"task_response,omitempty"`
	// contains filtered or unexported fields
}

func (*IChainbaseServiceManagerTaskResponse) Descriptor deprecated

func (*IChainbaseServiceManagerTaskResponse) Descriptor() ([]byte, []int)

Deprecated: Use IChainbaseServiceManagerTaskResponse.ProtoReflect.Descriptor instead.

func (*IChainbaseServiceManagerTaskResponse) GetReferenceTaskIndex

func (x *IChainbaseServiceManagerTaskResponse) GetReferenceTaskIndex() uint32

func (*IChainbaseServiceManagerTaskResponse) GetTaskResponse

func (x *IChainbaseServiceManagerTaskResponse) GetTaskResponse() string

func (*IChainbaseServiceManagerTaskResponse) ProtoMessage

func (*IChainbaseServiceManagerTaskResponse) ProtoMessage()

func (*IChainbaseServiceManagerTaskResponse) ProtoReflect

func (*IChainbaseServiceManagerTaskResponse) Reset

func (*IChainbaseServiceManagerTaskResponse) String

type Signature

type Signature struct {
	G1Point *G1Point `protobuf:"bytes,1,opt,name=g1_point,json=g1Point,proto3" json:"g1_point,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

func (*Signature) Descriptor() ([]byte, []int)

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetG1Point

func (x *Signature) GetG1Point() *G1Point

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type SignedTaskResponseReply

type SignedTaskResponseReply struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedTaskResponseReply) Descriptor deprecated

func (*SignedTaskResponseReply) Descriptor() ([]byte, []int)

Deprecated: Use SignedTaskResponseReply.ProtoReflect.Descriptor instead.

func (*SignedTaskResponseReply) GetSuccess

func (x *SignedTaskResponseReply) GetSuccess() bool

func (*SignedTaskResponseReply) ProtoMessage

func (*SignedTaskResponseReply) ProtoMessage()

func (*SignedTaskResponseReply) ProtoReflect

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

func (*SignedTaskResponseReply) Reset

func (x *SignedTaskResponseReply) Reset()

func (*SignedTaskResponseReply) String

func (x *SignedTaskResponseReply) String() string

type SignedTaskResponseRequest

type SignedTaskResponseRequest struct {
	TaskResponse *IChainbaseServiceManagerTaskResponse `protobuf:"bytes,1,opt,name=task_response,json=taskResponse,proto3" json:"task_response,omitempty"`
	BlsSignature *Signature                            `protobuf:"bytes,2,opt,name=bls_signature,json=blsSignature,proto3" json:"bls_signature,omitempty"`
	OperatorId   []byte                                `protobuf:"bytes,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"` // OperatorId (Bytes32)
	// contains filtered or unexported fields
}

func (*SignedTaskResponseRequest) Descriptor deprecated

func (*SignedTaskResponseRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignedTaskResponseRequest.ProtoReflect.Descriptor instead.

func (*SignedTaskResponseRequest) GetBlsSignature

func (x *SignedTaskResponseRequest) GetBlsSignature() *Signature

func (*SignedTaskResponseRequest) GetOperatorId

func (x *SignedTaskResponseRequest) GetOperatorId() []byte

func (*SignedTaskResponseRequest) GetTaskResponse

func (*SignedTaskResponseRequest) ProtoMessage

func (*SignedTaskResponseRequest) ProtoMessage()

func (*SignedTaskResponseRequest) ProtoReflect

func (*SignedTaskResponseRequest) Reset

func (x *SignedTaskResponseRequest) Reset()

func (*SignedTaskResponseRequest) String

func (x *SignedTaskResponseRequest) String() string

type UnimplementedCoordinatorServiceServer

type UnimplementedCoordinatorServiceServer struct{}

UnimplementedCoordinatorServiceServer 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 (UnimplementedCoordinatorServiceServer) ProcessSignedTaskResponse

type UnsafeCoordinatorServiceServer

type UnsafeCoordinatorServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCoordinatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoordinatorServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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