Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type GetAllTranslateMessageResponse
- func (*GetAllTranslateMessageResponse) Descriptor() ([]byte, []int)
- func (m *GetAllTranslateMessageResponse) GetCode() int32
- func (m *GetAllTranslateMessageResponse) GetCodeExplain() string
- func (m *GetAllTranslateMessageResponse) GetData() []*monitor_metadata.TranslateMessage
- func (m *GetAllTranslateMessageResponse) GetMessage() string
- func (*GetAllTranslateMessageResponse) ProtoMessage()
- func (m *GetAllTranslateMessageResponse) Reset()
- func (m *GetAllTranslateMessageResponse) String() string
- func (this *GetAllTranslateMessageResponse) Validate() error
- func (m *GetAllTranslateMessageResponse) XXX_DiscardUnknown()
- func (m *GetAllTranslateMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllTranslateMessageResponse) XXX_Merge(src proto.Message)
- func (m *GetAllTranslateMessageResponse) XXX_Size() int
- func (m *GetAllTranslateMessageResponse) XXX_Unmarshal(b []byte) error
- type GetAllTranslateMessageResponseWrapper
- func (*GetAllTranslateMessageResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetAllTranslateMessageResponseWrapper) GetCode() int32
- func (m *GetAllTranslateMessageResponseWrapper) GetCodeExplain() string
- func (m *GetAllTranslateMessageResponseWrapper) GetData() *GetAllTranslateMessageResponse
- func (m *GetAllTranslateMessageResponseWrapper) GetError() string
- func (*GetAllTranslateMessageResponseWrapper) ProtoMessage()
- func (m *GetAllTranslateMessageResponseWrapper) Reset()
- func (m *GetAllTranslateMessageResponseWrapper) String() string
- func (this *GetAllTranslateMessageResponseWrapper) Validate() error
- func (m *GetAllTranslateMessageResponseWrapper) XXX_DiscardUnknown()
- func (m *GetAllTranslateMessageResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAllTranslateMessageResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetAllTranslateMessageResponseWrapper) XXX_Size() int
- func (m *GetAllTranslateMessageResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface {
GetAllTranslateMessage(ctx context.Context, in *types.Empty) (*GetAllTranslateMessageResponse, error)
}
Client is the client API for translate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type GetAllTranslateMessageResponse ¶
type GetAllTranslateMessageResponse struct { // //code Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码字符串表示 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //返回码字符串表示" Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message" form:"message"` // //返回数据 Data []*monitor_metadata.TranslateMessage `protobuf:"bytes,4,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAllTranslateMessage返回
func (*GetAllTranslateMessageResponse) Descriptor ¶
func (*GetAllTranslateMessageResponse) Descriptor() ([]byte, []int)
func (*GetAllTranslateMessageResponse) GetCode ¶
func (m *GetAllTranslateMessageResponse) GetCode() int32
func (*GetAllTranslateMessageResponse) GetCodeExplain ¶
func (m *GetAllTranslateMessageResponse) GetCodeExplain() string
func (*GetAllTranslateMessageResponse) GetData ¶
func (m *GetAllTranslateMessageResponse) GetData() []*monitor_metadata.TranslateMessage
func (*GetAllTranslateMessageResponse) GetMessage ¶
func (m *GetAllTranslateMessageResponse) GetMessage() string
func (*GetAllTranslateMessageResponse) ProtoMessage ¶
func (*GetAllTranslateMessageResponse) ProtoMessage()
func (*GetAllTranslateMessageResponse) Reset ¶
func (m *GetAllTranslateMessageResponse) Reset()
func (*GetAllTranslateMessageResponse) String ¶
func (m *GetAllTranslateMessageResponse) String() string
func (*GetAllTranslateMessageResponse) Validate ¶
func (this *GetAllTranslateMessageResponse) Validate() error
func (*GetAllTranslateMessageResponse) XXX_DiscardUnknown ¶
func (m *GetAllTranslateMessageResponse) XXX_DiscardUnknown()
func (*GetAllTranslateMessageResponse) XXX_Marshal ¶
func (m *GetAllTranslateMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllTranslateMessageResponse) XXX_Merge ¶
func (m *GetAllTranslateMessageResponse) XXX_Merge(src proto.Message)
func (*GetAllTranslateMessageResponse) XXX_Size ¶
func (m *GetAllTranslateMessageResponse) XXX_Size() int
func (*GetAllTranslateMessageResponse) XXX_Unmarshal ¶
func (m *GetAllTranslateMessageResponse) XXX_Unmarshal(b []byte) error
type GetAllTranslateMessageResponseWrapper ¶
type GetAllTranslateMessageResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *GetAllTranslateMessageResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAllTranslateMessageApi返回
func (*GetAllTranslateMessageResponseWrapper) Descriptor ¶
func (*GetAllTranslateMessageResponseWrapper) Descriptor() ([]byte, []int)
func (*GetAllTranslateMessageResponseWrapper) GetCode ¶
func (m *GetAllTranslateMessageResponseWrapper) GetCode() int32
func (*GetAllTranslateMessageResponseWrapper) GetCodeExplain ¶
func (m *GetAllTranslateMessageResponseWrapper) GetCodeExplain() string
func (*GetAllTranslateMessageResponseWrapper) GetData ¶
func (m *GetAllTranslateMessageResponseWrapper) GetData() *GetAllTranslateMessageResponse
func (*GetAllTranslateMessageResponseWrapper) GetError ¶
func (m *GetAllTranslateMessageResponseWrapper) GetError() string
func (*GetAllTranslateMessageResponseWrapper) ProtoMessage ¶
func (*GetAllTranslateMessageResponseWrapper) ProtoMessage()
func (*GetAllTranslateMessageResponseWrapper) Reset ¶
func (m *GetAllTranslateMessageResponseWrapper) Reset()
func (*GetAllTranslateMessageResponseWrapper) String ¶
func (m *GetAllTranslateMessageResponseWrapper) String() string
func (*GetAllTranslateMessageResponseWrapper) Validate ¶
func (this *GetAllTranslateMessageResponseWrapper) Validate() error
func (*GetAllTranslateMessageResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetAllTranslateMessageResponseWrapper) XXX_DiscardUnknown()
func (*GetAllTranslateMessageResponseWrapper) XXX_Marshal ¶
func (m *GetAllTranslateMessageResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAllTranslateMessageResponseWrapper) XXX_Merge ¶
func (m *GetAllTranslateMessageResponseWrapper) XXX_Merge(src proto.Message)
func (*GetAllTranslateMessageResponseWrapper) XXX_Size ¶
func (m *GetAllTranslateMessageResponseWrapper) XXX_Size() int
func (*GetAllTranslateMessageResponseWrapper) XXX_Unmarshal ¶
func (m *GetAllTranslateMessageResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.