encryption

package
Version: v0.0.0-...-9615aeb Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 6 Imported by: 0

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 EncrypterHandler interface {
	Encrypt(context.Context, *Request, *Response) error
	Decrypt(context.Context, *Request, *Response) error
}

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

func (*Request) GetKey

func (m *Request) GetKey() string

func (*Request) GetMessage

func (m *Request) GetMessage() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	Result string `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetResult

func (m *Response) GetResult() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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