Documentation ¶
Overview ¶
Package encryption is a generated protocol buffer package.
It is generated from these files:
proto/encryption.proto
It has these top-level messages:
Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEncrypterHandler ¶
func RegisterEncrypterHandler(s server.Server, hdlr EncrypterHandler, opts ...server.HandlerOption) error
Types ¶
type EncrypterHandler ¶
type EncrypterService ¶
type EncrypterService interface { Encrypt(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Decrypt(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) }
func NewEncrypterService ¶
func NewEncrypterService(name string, c client.Client) EncrypterService
type Request ¶
type Request struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct {
Result string `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.