Documentation ¶
Index ¶
- func RegisterTranslatorServer(s *grpc.Server, srv TranslatorServer)
- type Original
- func (*Original) Descriptor() ([]byte, []int)
- func (m *Original) GetMsg() string
- func (*Original) ProtoMessage()
- func (m *Original) Reset()
- func (m *Original) String() string
- func (m *Original) XXX_DiscardUnknown()
- func (m *Original) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Original) XXX_Merge(src proto.Message)
- func (m *Original) XXX_Size() int
- func (m *Original) XXX_Unmarshal(b []byte) error
- type Translation
- func (*Translation) Descriptor() ([]byte, []int)
- func (m *Translation) GetMsg() string
- func (*Translation) ProtoMessage()
- func (m *Translation) Reset()
- func (m *Translation) String() string
- func (m *Translation) XXX_DiscardUnknown()
- func (m *Translation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Translation) XXX_Merge(src proto.Message)
- func (m *Translation) XXX_Size() int
- func (m *Translation) XXX_Unmarshal(b []byte) error
- type TranslatorClient
- type TranslatorServer
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) ProtoMessage ¶
func (*Original) ProtoMessage()
func (*Original) XXX_DiscardUnknown ¶
func (m *Original) XXX_DiscardUnknown()
func (*Original) XXX_Marshal ¶
func (*Original) XXX_Unmarshal ¶
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)
}
Click to show internal directories.
Click to hide internal directories.