signer

package
v1.4.413 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protoc_signer_proto protoreflect.FileDescriptor
View Source
var Signer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpc.Signer",
	HandlerType: (*SignerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Sign",
			Handler:    _Signer_Sign_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protoc/signer.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 DataToSign

type DataToSign struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	By   string `protobuf:"bytes,2,opt,name=by,proto3" json:"by,omitempty"`
	// contains filtered or unexported fields
}

func (*DataToSign) Descriptor deprecated

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

Deprecated: Use DataToSign.ProtoReflect.Descriptor instead.

func (*DataToSign) GetBy

func (x *DataToSign) GetBy() string

func (*DataToSign) GetData

func (x *DataToSign) GetData() []byte

func (*DataToSign) ProtoMessage

func (*DataToSign) ProtoMessage()

func (*DataToSign) ProtoReflect

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

func (*DataToSign) Reset

func (x *DataToSign) Reset()

func (*DataToSign) String

func (x *DataToSign) String() string

type SignedData

type SignedData struct {
	Signed []byte `protobuf:"bytes,1,opt,name=signed,proto3" json:"signed,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the user's name.

func (*SignedData) Descriptor deprecated

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

Deprecated: Use SignedData.ProtoReflect.Descriptor instead.

func (*SignedData) GetSigned

func (x *SignedData) GetSigned() []byte

func (*SignedData) ProtoMessage

func (*SignedData) ProtoMessage()

func (*SignedData) ProtoReflect

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

func (*SignedData) Reset

func (x *SignedData) Reset()

func (*SignedData) String

func (x *SignedData) String() string

type SignerClient

type SignerClient interface {
	Sign(ctx context.Context, in *DataToSign, opts ...grpc.CallOption) (*SignedData, 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, *DataToSign) (*SignedData, 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

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.

Jump to

Keyboard shortcuts

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