Documentation
¶
Index ¶
- func RegisterAppServeServer(s *grpc.Server, srv AppServeServer)
- type AppServeClient
- type AppServeServer
- type ClientComRequest
- func (*ClientComRequest) Descriptor() ([]byte, []int)
- func (m *ClientComRequest) GetFrontEnd() *FrontEnd
- func (m *ClientComRequest) GetId() string
- func (m *ClientComRequest) GetMethodPath() *MethodPath
- func (m *ClientComRequest) GetParams() *any.Any
- func (m *ClientComRequest) GetQid() string
- func (m *ClientComRequest) GetTraceId() string
- func (*ClientComRequest) ProtoMessage()
- func (m *ClientComRequest) Reset()
- func (m *ClientComRequest) String() string
- func (m *ClientComRequest) XXX_DiscardUnknown()
- func (m *ClientComRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientComRequest) XXX_Merge(src proto.Message)
- func (m *ClientComRequest) XXX_Size() int
- func (m *ClientComRequest) XXX_Unmarshal(b []byte) error
- type FrontEnd
- func (*FrontEnd) Descriptor() ([]byte, []int)
- func (m *FrontEnd) GetClientVersion() string
- func (m *FrontEnd) GetHash() string
- func (m *FrontEnd) GetKey() string
- func (m *FrontEnd) GetPlatform() string
- func (m *FrontEnd) GetSignature() string
- func (m *FrontEnd) GetUuid() string
- func (*FrontEnd) ProtoMessage()
- func (m *FrontEnd) Reset()
- func (m *FrontEnd) String() string
- func (m *FrontEnd) XXX_DiscardUnknown()
- func (m *FrontEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FrontEnd) XXX_Merge(src proto.Message)
- func (m *FrontEnd) XXX_Size() int
- func (m *FrontEnd) XXX_Unmarshal(b []byte) error
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetParams() *any.Any
- func (m *LoginResponse) GetResult() bool
- func (m *LoginResponse) GetUserId() string
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- func (m *LoginResponse) XXX_DiscardUnknown()
- func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginResponse) XXX_Merge(src proto.Message)
- func (m *LoginResponse) XXX_Size() int
- func (m *LoginResponse) XXX_Unmarshal(b []byte) error
- type MethodPath
- func (*MethodPath) Descriptor() ([]byte, []int)
- func (m *MethodPath) GetAction() string
- func (m *MethodPath) GetResource() string
- func (m *MethodPath) GetRevision() string
- func (*MethodPath) ProtoMessage()
- func (m *MethodPath) Reset()
- func (m *MethodPath) String() string
- func (m *MethodPath) XXX_DiscardUnknown()
- func (m *MethodPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MethodPath) XXX_Merge(src proto.Message)
- func (m *MethodPath) XXX_Size() int
- func (m *MethodPath) XXX_Unmarshal(b []byte) error
- type ServerComResponse
- func (*ServerComResponse) Descriptor() ([]byte, []int)
- func (m *ServerComResponse) GetBody() *any.Any
- func (m *ServerComResponse) GetCode() uint32
- func (m *ServerComResponse) GetHeader() *any.Any
- func (m *ServerComResponse) GetId() string
- func (m *ServerComResponse) GetSeqId() string
- func (m *ServerComResponse) GetText() string
- func (m *ServerComResponse) GetTraceId() string
- func (m *ServerComResponse) GetTs() int64
- func (*ServerComResponse) ProtoMessage()
- func (m *ServerComResponse) Reset()
- func (m *ServerComResponse) String() string
- func (m *ServerComResponse) XXX_DiscardUnknown()
- func (m *ServerComResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServerComResponse) XXX_Merge(src proto.Message)
- func (m *ServerComResponse) XXX_Size() int
- func (m *ServerComResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAppServeServer ¶
func RegisterAppServeServer(s *grpc.Server, srv AppServeServer)
Types ¶
type AppServeClient ¶
type AppServeClient interface {
Request(ctx context.Context, in *ClientComRequest, opts ...grpc.CallOption) (*ServerComResponse, error)
}
AppServeClient is the client API for AppServe service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAppServeClient ¶
func NewAppServeClient(cc *grpc.ClientConn) AppServeClient
type AppServeServer ¶
type AppServeServer interface {
Request(context.Context, *ClientComRequest) (*ServerComResponse, error)
}
AppServeServer is the server API for AppServe service.
type ClientComRequest ¶
type ClientComRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Qid string `protobuf:"bytes,2,opt,name=qid,proto3" json:"qid,omitempty"` TraceId string `protobuf:"bytes,3,opt,name=trace_id,proto3" json:"trace_id,omitempty"` MethodPath *MethodPath `protobuf:"bytes,4,opt,name=method_path,json=methodPath,proto3" json:"method_path,omitempty"` FrontEnd *FrontEnd `protobuf:"bytes,5,opt,name=front_end,json=frontEnd,proto3" json:"front_end,omitempty"` Params *any.Any `protobuf:"bytes,6,opt,name=params,proto3" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request 总体数据格式定义
func (*ClientComRequest) Descriptor ¶
func (*ClientComRequest) Descriptor() ([]byte, []int)
func (*ClientComRequest) GetFrontEnd ¶
func (m *ClientComRequest) GetFrontEnd() *FrontEnd
func (*ClientComRequest) GetId ¶
func (m *ClientComRequest) GetId() string
func (*ClientComRequest) GetMethodPath ¶
func (m *ClientComRequest) GetMethodPath() *MethodPath
func (*ClientComRequest) GetParams ¶
func (m *ClientComRequest) GetParams() *any.Any
func (*ClientComRequest) GetQid ¶
func (m *ClientComRequest) GetQid() string
func (*ClientComRequest) GetTraceId ¶
func (m *ClientComRequest) GetTraceId() string
func (*ClientComRequest) ProtoMessage ¶
func (*ClientComRequest) ProtoMessage()
func (*ClientComRequest) Reset ¶
func (m *ClientComRequest) Reset()
func (*ClientComRequest) String ¶
func (m *ClientComRequest) String() string
func (*ClientComRequest) XXX_DiscardUnknown ¶
func (m *ClientComRequest) XXX_DiscardUnknown()
func (*ClientComRequest) XXX_Marshal ¶
func (m *ClientComRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientComRequest) XXX_Merge ¶
func (m *ClientComRequest) XXX_Merge(src proto.Message)
func (*ClientComRequest) XXX_Size ¶
func (m *ClientComRequest) XXX_Size() int
func (*ClientComRequest) XXX_Unmarshal ¶
func (m *ClientComRequest) XXX_Unmarshal(b []byte) error
type FrontEnd ¶
type FrontEnd struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=cver,proto3" json:"client_version,omitempty"` Platform string `protobuf:"bytes,4,opt,name=platform,json=platf,proto3" json:"platform,omitempty"` Hash string `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"` Signature string `protobuf:"bytes,6,opt,name=signature,json=sig,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
前端参数,定稿参数就要等待定稿
func (*FrontEnd) Descriptor ¶
func (*FrontEnd) GetClientVersion ¶
func (*FrontEnd) GetPlatform ¶
func (*FrontEnd) GetSignature ¶
func (*FrontEnd) ProtoMessage ¶
func (*FrontEnd) ProtoMessage()
func (*FrontEnd) XXX_DiscardUnknown ¶
func (m *FrontEnd) XXX_DiscardUnknown()
func (*FrontEnd) XXX_Marshal ¶
func (*FrontEnd) XXX_Unmarshal ¶
type LoginResponse ¶
type LoginResponse struct { //登录结果 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` //用户名 UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //自定义参数 Params *any.Any `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
登录返回值
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetParams ¶
func (m *LoginResponse) GetParams() *any.Any
func (*LoginResponse) GetResult ¶
func (m *LoginResponse) GetResult() bool
func (*LoginResponse) GetUserId ¶
func (m *LoginResponse) GetUserId() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
func (*LoginResponse) XXX_DiscardUnknown ¶
func (m *LoginResponse) XXX_DiscardUnknown()
func (*LoginResponse) XXX_Marshal ¶
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginResponse) XXX_Merge ¶
func (m *LoginResponse) XXX_Merge(src proto.Message)
func (*LoginResponse) XXX_Size ¶
func (m *LoginResponse) XXX_Size() int
func (*LoginResponse) XXX_Unmarshal ¶
func (m *LoginResponse) XXX_Unmarshal(b []byte) error
type MethodPath ¶
type MethodPath struct { Resource string `protobuf:"bytes,1,opt,name=resource,json=res,proto3" json:"resource,omitempty"` Action string `protobuf:"bytes,2,opt,name=action,json=act,proto3" json:"action,omitempty"` Revision string `protobuf:"bytes,3,opt,name=revision,json=rev,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
方法路径
func (*MethodPath) Descriptor ¶
func (*MethodPath) Descriptor() ([]byte, []int)
func (*MethodPath) GetAction ¶
func (m *MethodPath) GetAction() string
func (*MethodPath) GetResource ¶
func (m *MethodPath) GetResource() string
func (*MethodPath) GetRevision ¶
func (m *MethodPath) GetRevision() string
func (*MethodPath) ProtoMessage ¶
func (*MethodPath) ProtoMessage()
func (*MethodPath) Reset ¶
func (m *MethodPath) Reset()
func (*MethodPath) String ¶
func (m *MethodPath) String() string
func (*MethodPath) XXX_DiscardUnknown ¶
func (m *MethodPath) XXX_DiscardUnknown()
func (*MethodPath) XXX_Marshal ¶
func (m *MethodPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MethodPath) XXX_Merge ¶
func (m *MethodPath) XXX_Merge(src proto.Message)
func (*MethodPath) XXX_Size ¶
func (m *MethodPath) XXX_Size() int
func (*MethodPath) XXX_Unmarshal ¶
func (m *MethodPath) XXX_Unmarshal(b []byte) error
type ServerComResponse ¶
type ServerComResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` TraceId string `protobuf:"bytes,4,opt,name=trace_id,proto3" json:"trace_id,omitempty"` SeqId string `protobuf:"bytes,5,opt,name=seq_id,json=seqId,proto3" json:"seq_id,omitempty"` Ts int64 `protobuf:"varint,6,opt,name=ts,proto3" json:"ts,omitempty"` Header *any.Any `protobuf:"bytes,7,opt,name=header,proto3" json:"header,omitempty"` Body *any.Any `protobuf:"bytes,8,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ServerComResponse 统一接入响应手机端的数据结构
func (*ServerComResponse) Descriptor ¶
func (*ServerComResponse) Descriptor() ([]byte, []int)
func (*ServerComResponse) GetBody ¶
func (m *ServerComResponse) GetBody() *any.Any
func (*ServerComResponse) GetCode ¶
func (m *ServerComResponse) GetCode() uint32
func (*ServerComResponse) GetHeader ¶
func (m *ServerComResponse) GetHeader() *any.Any
func (*ServerComResponse) GetId ¶
func (m *ServerComResponse) GetId() string
func (*ServerComResponse) GetSeqId ¶
func (m *ServerComResponse) GetSeqId() string
func (*ServerComResponse) GetText ¶
func (m *ServerComResponse) GetText() string
func (*ServerComResponse) GetTraceId ¶
func (m *ServerComResponse) GetTraceId() string
func (*ServerComResponse) GetTs ¶
func (m *ServerComResponse) GetTs() int64
func (*ServerComResponse) ProtoMessage ¶
func (*ServerComResponse) ProtoMessage()
func (*ServerComResponse) Reset ¶
func (m *ServerComResponse) Reset()
func (*ServerComResponse) String ¶
func (m *ServerComResponse) String() string
func (*ServerComResponse) XXX_DiscardUnknown ¶
func (m *ServerComResponse) XXX_DiscardUnknown()
func (*ServerComResponse) XXX_Marshal ¶
func (m *ServerComResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerComResponse) XXX_Merge ¶
func (m *ServerComResponse) XXX_Merge(src proto.Message)
func (*ServerComResponse) XXX_Size ¶
func (m *ServerComResponse) XXX_Size() int
func (*ServerComResponse) XXX_Unmarshal ¶
func (m *ServerComResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.