translate

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 (*GetAllTranslateMessageResponse) GetCodeExplain

func (m *GetAllTranslateMessageResponse) GetCodeExplain() string

func (*GetAllTranslateMessageResponse) GetData

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 (*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 (*GetAllTranslateMessageResponseWrapper) GetCodeExplain

func (m *GetAllTranslateMessageResponseWrapper) GetCodeExplain() string

func (*GetAllTranslateMessageResponseWrapper) GetData

func (*GetAllTranslateMessageResponseWrapper) GetError

func (*GetAllTranslateMessageResponseWrapper) ProtoMessage

func (*GetAllTranslateMessageResponseWrapper) ProtoMessage()

func (*GetAllTranslateMessageResponseWrapper) Reset

func (*GetAllTranslateMessageResponseWrapper) String

func (*GetAllTranslateMessageResponseWrapper) Validate

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 (*GetAllTranslateMessageResponseWrapper) XXX_Size

func (*GetAllTranslateMessageResponseWrapper) XXX_Unmarshal

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

type Service

type Service interface {
	GetAllTranslateMessage(context.Context, *types.Empty) (*GetAllTranslateMessageResponse, error)
}

Service is the server API for translate service.

Jump to

Keyboard shortcuts

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