translate

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTranslatorServer

func RegisterTranslatorServer(s *grpc.Server, srv TranslatorServer)

Types

type Original

type Original struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Original) Descriptor

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

func (*Original) GetMsg

func (m *Original) GetMsg() string

func (*Original) ProtoMessage

func (*Original) ProtoMessage()

func (*Original) Reset

func (m *Original) Reset()

func (*Original) String

func (m *Original) String() string

func (*Original) XXX_DiscardUnknown

func (m *Original) XXX_DiscardUnknown()

func (*Original) XXX_Marshal

func (m *Original) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Original) XXX_Merge

func (dst *Original) XXX_Merge(src proto.Message)

func (*Original) XXX_Size

func (m *Original) XXX_Size() int

func (*Original) XXX_Unmarshal

func (m *Original) XXX_Unmarshal(b []byte) error

type Translation

type Translation struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Translation) Descriptor

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

func (*Translation) GetMsg

func (m *Translation) GetMsg() string

func (*Translation) ProtoMessage

func (*Translation) ProtoMessage()

func (*Translation) Reset

func (m *Translation) Reset()

func (*Translation) String

func (m *Translation) String() string

func (*Translation) XXX_DiscardUnknown

func (m *Translation) XXX_DiscardUnknown()

func (*Translation) XXX_Marshal

func (m *Translation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Translation) XXX_Merge

func (dst *Translation) XXX_Merge(src proto.Message)

func (*Translation) XXX_Size

func (m *Translation) XXX_Size() int

func (*Translation) XXX_Unmarshal

func (m *Translation) XXX_Unmarshal(b []byte) error

type TranslatorClient

type TranslatorClient interface {
	Translate(ctx context.Context, in *Original, opts ...grpc.CallOption) (*Translation, error)
}

func NewTranslatorClient

func NewTranslatorClient(cc *grpc.ClientConn) TranslatorClient

type TranslatorServer

type TranslatorServer interface {
	Translate(context.Context, *Original) (*Translation, error)
}

Jump to

Keyboard shortcuts

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