Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_message_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEncrypterServer ¶
func RegisterEncrypterServer(s *grpc.Server, srv EncrypterServer)
Types ¶
type EncrypterClient ¶
type EncrypterClient interface { Encrypt(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) EncryptStream(ctx context.Context, opts ...grpc.CallOption) (Encrypter_EncryptStreamClient, error) }
EncrypterClient is the client API for Encrypter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEncrypterClient ¶
func NewEncrypterClient(cc grpc.ClientConnInterface) EncrypterClient
type EncrypterServer ¶
type EncrypterServer interface { Encrypt(context.Context, *Request) (*Response, error) EncryptStream(Encrypter_EncryptStreamServer) error }
EncrypterServer is the server API for Encrypter service.
type Request ¶
type Request struct { Plaintext []byte `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetPlaintext ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetCiphertext ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedEncrypterServer ¶
type UnimplementedEncrypterServer struct { }
UnimplementedEncrypterServer can be embedded to have forward compatible implementations.
func (*UnimplementedEncrypterServer) EncryptStream ¶
func (*UnimplementedEncrypterServer) EncryptStream(Encrypter_EncryptStreamServer) error
Click to show internal directories.
Click to hide internal directories.