proto_message

package
v0.0.0-...-9782c69 Latest Latest
Warning

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

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

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 Encrypter_EncryptStreamClient

type Encrypter_EncryptStreamClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	grpc.ClientStream
}

type Encrypter_EncryptStreamServer

type Encrypter_EncryptStreamServer interface {
	Send(*Response) error
	Recv() (*Request, error)
	grpc.ServerStream
}

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetPlaintext

func (x *Request) GetPlaintext() []byte

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCiphertext

func (x *Response) GetCiphertext() []byte

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedEncrypterServer

type UnimplementedEncrypterServer struct {
}

UnimplementedEncrypterServer can be embedded to have forward compatible implementations.

func (*UnimplementedEncrypterServer) Encrypt

func (*UnimplementedEncrypterServer) EncryptStream

Jump to

Keyboard shortcuts

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