Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSignerServer(s grpc.ServiceRegistrar, srv SignerServer)
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRequest) GetDestinationChainId() []byte
- func (x *SignRequest) GetPayload() []byte
- func (x *SignRequest) GetSourceChainId() []byte
- func (*SignRequest) ProtoMessage()
- func (x *SignRequest) ProtoReflect() protoreflect.Message
- func (x *SignRequest) Reset()
- func (x *SignRequest) String() string
- type SignResponse
- type SignerClient
- type SignerServer
- type UnimplementedSignerServer
- type UnsafeSignerServer
Constants ¶
const (
Signer_Sign_FullMethodName = "/warp.Signer/Sign"
)
Variables ¶
var File_warp_message_proto protoreflect.FileDescriptor
var Signer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "warp.Signer", HandlerType: (*SignerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sign", Handler: _Signer_Sign_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "warp/message.proto", }
Signer_ServiceDesc is the grpc.ServiceDesc for Signer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSignerServer ¶
func RegisterSignerServer(s grpc.ServiceRegistrar, srv SignerServer)
Types ¶
type SignRequest ¶
type SignRequest struct { SourceChainId []byte `protobuf:"bytes,1,opt,name=source_chain_id,json=sourceChainId,proto3" json:"source_chain_id,omitempty"` DestinationChainId []byte `protobuf:"bytes,2,opt,name=destination_chain_id,json=destinationChainId,proto3" json:"destination_chain_id,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*SignRequest) Descriptor
deprecated
func (*SignRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) GetDestinationChainId ¶
func (x *SignRequest) GetDestinationChainId() []byte
func (*SignRequest) GetPayload ¶
func (x *SignRequest) GetPayload() []byte
func (*SignRequest) GetSourceChainId ¶
func (x *SignRequest) GetSourceChainId() []byte
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) ProtoReflect ¶
func (x *SignRequest) ProtoReflect() protoreflect.Message
func (*SignRequest) Reset ¶
func (x *SignRequest) Reset()
func (*SignRequest) String ¶
func (x *SignRequest) String() string
type SignResponse ¶
type SignResponse struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*SignResponse) Descriptor
deprecated
func (*SignResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) GetSignature ¶
func (x *SignResponse) GetSignature() []byte
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) ProtoReflect ¶
func (x *SignResponse) ProtoReflect() protoreflect.Message
func (*SignResponse) Reset ¶
func (x *SignResponse) Reset()
func (*SignResponse) String ¶
func (x *SignResponse) String() string
type SignerClient ¶
type SignerClient interface {
Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
}
SignerClient is the client API for Signer 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 NewSignerClient ¶
func NewSignerClient(cc grpc.ClientConnInterface) SignerClient
type SignerServer ¶
type SignerServer interface { Sign(context.Context, *SignRequest) (*SignResponse, error) // contains filtered or unexported methods }
SignerServer is the server API for Signer service. All implementations must embed UnimplementedSignerServer for forward compatibility
type UnimplementedSignerServer ¶
type UnimplementedSignerServer struct { }
UnimplementedSignerServer must be embedded to have forward compatible implementations.
func (UnimplementedSignerServer) Sign ¶
func (UnimplementedSignerServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
type UnsafeSignerServer ¶
type UnsafeSignerServer interface {
// contains filtered or unexported methods
}
UnsafeSignerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SignerServer will result in compilation errors.