Documentation ¶
Index ¶
- func RegisterPairServer(s *grpc.Server, srv PairServer)
- type ELeListRsp
- func (*ELeListRsp) Descriptor() ([]byte, []int)
- func (m *ELeListRsp) GetCode() int64
- func (m *ELeListRsp) GetMessage() string
- func (m *ELeListRsp) GetPage() int64
- func (m *ELeListRsp) GetPageSize() int64
- func (m *ELeListRsp) GetTotal() int64
- func (m *ELeListRsp) GetUserElement() []*UserElement
- func (*ELeListRsp) ProtoMessage()
- func (m *ELeListRsp) Reset()
- func (m *ELeListRsp) String() string
- func (m *ELeListRsp) XXX_DiscardUnknown()
- func (m *ELeListRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ELeListRsp) XXX_Merge(src proto.Message)
- func (m *ELeListRsp) XXX_Size() int
- func (m *ELeListRsp) XXX_Unmarshal(b []byte) error
- type EleListReq
- func (*EleListReq) Descriptor() ([]byte, []int)
- func (m *EleListReq) GetKeyword() string
- func (m *EleListReq) GetPage() int64
- func (m *EleListReq) GetPageSize() int64
- func (*EleListReq) ProtoMessage()
- func (m *EleListReq) Reset()
- func (m *EleListReq) String() string
- func (m *EleListReq) XXX_DiscardUnknown()
- func (m *EleListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EleListReq) XXX_Merge(src proto.Message)
- func (m *EleListReq) XXX_Size() int
- func (m *EleListReq) XXX_Unmarshal(b []byte) error
- type ElePairReq
- func (*ElePairReq) Descriptor() ([]byte, []int)
- func (m *ElePairReq) GetPage() int64
- func (m *ElePairReq) GetPageSize() int64
- func (m *ElePairReq) GetUid() uint64
- func (*ElePairReq) ProtoMessage()
- func (m *ElePairReq) Reset()
- func (m *ElePairReq) String() string
- func (m *ElePairReq) XXX_DiscardUnknown()
- func (m *ElePairReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ElePairReq) XXX_Merge(src proto.Message)
- func (m *ElePairReq) XXX_Size() int
- func (m *ElePairReq) XXX_Unmarshal(b []byte) error
- type EleSaveReq
- func (*EleSaveReq) Descriptor() ([]byte, []int)
- func (m *EleSaveReq) GetElement() []*Element
- func (m *EleSaveReq) GetUid() uint64
- func (*EleSaveReq) ProtoMessage()
- func (m *EleSaveReq) Reset()
- func (m *EleSaveReq) String() string
- func (m *EleSaveReq) XXX_DiscardUnknown()
- func (m *EleSaveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EleSaveReq) XXX_Merge(src proto.Message)
- func (m *EleSaveReq) XXX_Size() int
- func (m *EleSaveReq) XXX_Unmarshal(b []byte) error
- type EleViewReq
- func (*EleViewReq) Descriptor() ([]byte, []int)
- func (m *EleViewReq) GetUid() uint64
- func (*EleViewReq) ProtoMessage()
- func (m *EleViewReq) Reset()
- func (m *EleViewReq) String() string
- func (m *EleViewReq) XXX_DiscardUnknown()
- func (m *EleViewReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EleViewReq) XXX_Merge(src proto.Message)
- func (m *EleViewReq) XXX_Size() int
- func (m *EleViewReq) XXX_Unmarshal(b []byte) error
- type EleViewRsp
- func (*EleViewRsp) Descriptor() ([]byte, []int)
- func (m *EleViewRsp) GetCode() int64
- func (m *EleViewRsp) GetElement() []*Element
- func (m *EleViewRsp) GetMessage() string
- func (*EleViewRsp) ProtoMessage()
- func (m *EleViewRsp) Reset()
- func (m *EleViewRsp) String() string
- func (m *EleViewRsp) XXX_DiscardUnknown()
- func (m *EleViewRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EleViewRsp) XXX_Merge(src proto.Message)
- func (m *EleViewRsp) XXX_Size() int
- func (m *EleViewRsp) XXX_Unmarshal(b []byte) error
- type Element
- func (*Element) Descriptor() ([]byte, []int)
- func (m *Element) GetMode() string
- func (m *Element) GetName() string
- func (m *Element) GetSort() int64
- func (m *Element) GetStar() bool
- func (m *Element) GetUid() uint64
- func (*Element) ProtoMessage()
- func (m *Element) Reset()
- func (m *Element) String() string
- func (m *Element) XXX_DiscardUnknown()
- func (m *Element) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Element) XXX_Merge(src proto.Message)
- func (m *Element) XXX_Size() int
- func (m *Element) XXX_Unmarshal(b []byte) error
- type PairClient
- type PairServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetCode() int64
- func (m *Response) GetMessage() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type UnimplementedPairServer
- func (*UnimplementedPairServer) ElementList(ctx context.Context, req *EleListReq) (*ELeListRsp, error)
- func (*UnimplementedPairServer) ElementPair(ctx context.Context, req *ElePairReq) (*ELeListRsp, error)
- func (*UnimplementedPairServer) ElementSave(ctx context.Context, req *EleSaveReq) (*Response, error)
- func (*UnimplementedPairServer) ElementView(ctx context.Context, req *EleViewReq) (*EleViewRsp, error)
- type UserElement
- func (*UserElement) Descriptor() ([]byte, []int)
- func (m *UserElement) GetAccount() string
- func (m *UserElement) GetAvatar() string
- func (m *UserElement) GetElement() []*Element
- func (m *UserElement) GetId() uint64
- func (m *UserElement) GetName() string
- func (*UserElement) ProtoMessage()
- func (m *UserElement) Reset()
- func (m *UserElement) String() string
- func (m *UserElement) XXX_DiscardUnknown()
- func (m *UserElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserElement) XXX_Merge(src proto.Message)
- func (m *UserElement) XXX_Size() int
- func (m *UserElement) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPairServer ¶
func RegisterPairServer(s *grpc.Server, srv PairServer)
Types ¶
type ELeListRsp ¶
type ELeListRsp struct { Code int64 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` UserElement []*UserElement `protobuf:"bytes,3,rep,name=UserElement,proto3" json:"UserElement,omitempty"` Page int64 `protobuf:"varint,4,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int64 `protobuf:"varint,5,opt,name=PageSize,proto3" json:"PageSize,omitempty"` Total int64 `protobuf:"varint,6,opt,name=Total,proto3" json:"Total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ELeListRsp) Descriptor ¶
func (*ELeListRsp) Descriptor() ([]byte, []int)
func (*ELeListRsp) GetCode ¶
func (m *ELeListRsp) GetCode() int64
func (*ELeListRsp) GetMessage ¶
func (m *ELeListRsp) GetMessage() string
func (*ELeListRsp) GetPage ¶
func (m *ELeListRsp) GetPage() int64
func (*ELeListRsp) GetPageSize ¶
func (m *ELeListRsp) GetPageSize() int64
func (*ELeListRsp) GetTotal ¶
func (m *ELeListRsp) GetTotal() int64
func (*ELeListRsp) GetUserElement ¶
func (m *ELeListRsp) GetUserElement() []*UserElement
func (*ELeListRsp) ProtoMessage ¶
func (*ELeListRsp) ProtoMessage()
func (*ELeListRsp) Reset ¶
func (m *ELeListRsp) Reset()
func (*ELeListRsp) String ¶
func (m *ELeListRsp) String() string
func (*ELeListRsp) XXX_DiscardUnknown ¶
func (m *ELeListRsp) XXX_DiscardUnknown()
func (*ELeListRsp) XXX_Marshal ¶
func (m *ELeListRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ELeListRsp) XXX_Merge ¶
func (m *ELeListRsp) XXX_Merge(src proto.Message)
func (*ELeListRsp) XXX_Size ¶
func (m *ELeListRsp) XXX_Size() int
func (*ELeListRsp) XXX_Unmarshal ¶
func (m *ELeListRsp) XXX_Unmarshal(b []byte) error
type EleListReq ¶
type EleListReq struct { Page int64 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EleListReq) Descriptor ¶
func (*EleListReq) Descriptor() ([]byte, []int)
func (*EleListReq) GetKeyword ¶
func (m *EleListReq) GetKeyword() string
func (*EleListReq) GetPage ¶
func (m *EleListReq) GetPage() int64
func (*EleListReq) GetPageSize ¶
func (m *EleListReq) GetPageSize() int64
func (*EleListReq) ProtoMessage ¶
func (*EleListReq) ProtoMessage()
func (*EleListReq) Reset ¶
func (m *EleListReq) Reset()
func (*EleListReq) String ¶
func (m *EleListReq) String() string
func (*EleListReq) XXX_DiscardUnknown ¶
func (m *EleListReq) XXX_DiscardUnknown()
func (*EleListReq) XXX_Marshal ¶
func (m *EleListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EleListReq) XXX_Merge ¶
func (m *EleListReq) XXX_Merge(src proto.Message)
func (*EleListReq) XXX_Size ¶
func (m *EleListReq) XXX_Size() int
func (*EleListReq) XXX_Unmarshal ¶
func (m *EleListReq) XXX_Unmarshal(b []byte) error
type ElePairReq ¶
type ElePairReq struct { Uid uint64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"Uid,omitempty"` Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"` PageSize int64 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ElePairReq) Descriptor ¶
func (*ElePairReq) Descriptor() ([]byte, []int)
func (*ElePairReq) GetPage ¶
func (m *ElePairReq) GetPage() int64
func (*ElePairReq) GetPageSize ¶
func (m *ElePairReq) GetPageSize() int64
func (*ElePairReq) GetUid ¶
func (m *ElePairReq) GetUid() uint64
func (*ElePairReq) ProtoMessage ¶
func (*ElePairReq) ProtoMessage()
func (*ElePairReq) Reset ¶
func (m *ElePairReq) Reset()
func (*ElePairReq) String ¶
func (m *ElePairReq) String() string
func (*ElePairReq) XXX_DiscardUnknown ¶
func (m *ElePairReq) XXX_DiscardUnknown()
func (*ElePairReq) XXX_Marshal ¶
func (m *ElePairReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ElePairReq) XXX_Merge ¶
func (m *ElePairReq) XXX_Merge(src proto.Message)
func (*ElePairReq) XXX_Size ¶
func (m *ElePairReq) XXX_Size() int
func (*ElePairReq) XXX_Unmarshal ¶
func (m *ElePairReq) XXX_Unmarshal(b []byte) error
type EleSaveReq ¶
type EleSaveReq struct { Uid uint64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"Uid,omitempty"` Element []*Element `protobuf:"bytes,2,rep,name=Element,proto3" json:"Element,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EleSaveReq) Descriptor ¶
func (*EleSaveReq) Descriptor() ([]byte, []int)
func (*EleSaveReq) GetElement ¶
func (m *EleSaveReq) GetElement() []*Element
func (*EleSaveReq) GetUid ¶
func (m *EleSaveReq) GetUid() uint64
func (*EleSaveReq) ProtoMessage ¶
func (*EleSaveReq) ProtoMessage()
func (*EleSaveReq) Reset ¶
func (m *EleSaveReq) Reset()
func (*EleSaveReq) String ¶
func (m *EleSaveReq) String() string
func (*EleSaveReq) XXX_DiscardUnknown ¶
func (m *EleSaveReq) XXX_DiscardUnknown()
func (*EleSaveReq) XXX_Marshal ¶
func (m *EleSaveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EleSaveReq) XXX_Merge ¶
func (m *EleSaveReq) XXX_Merge(src proto.Message)
func (*EleSaveReq) XXX_Size ¶
func (m *EleSaveReq) XXX_Size() int
func (*EleSaveReq) XXX_Unmarshal ¶
func (m *EleSaveReq) XXX_Unmarshal(b []byte) error
type EleViewReq ¶
type EleViewReq struct { Uid uint64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"Uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EleViewReq) Descriptor ¶
func (*EleViewReq) Descriptor() ([]byte, []int)
func (*EleViewReq) GetUid ¶
func (m *EleViewReq) GetUid() uint64
func (*EleViewReq) ProtoMessage ¶
func (*EleViewReq) ProtoMessage()
func (*EleViewReq) Reset ¶
func (m *EleViewReq) Reset()
func (*EleViewReq) String ¶
func (m *EleViewReq) String() string
func (*EleViewReq) XXX_DiscardUnknown ¶
func (m *EleViewReq) XXX_DiscardUnknown()
func (*EleViewReq) XXX_Marshal ¶
func (m *EleViewReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EleViewReq) XXX_Merge ¶
func (m *EleViewReq) XXX_Merge(src proto.Message)
func (*EleViewReq) XXX_Size ¶
func (m *EleViewReq) XXX_Size() int
func (*EleViewReq) XXX_Unmarshal ¶
func (m *EleViewReq) XXX_Unmarshal(b []byte) error
type EleViewRsp ¶
type EleViewRsp struct { Code int64 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` Element []*Element `protobuf:"bytes,3,rep,name=Element,proto3" json:"Element,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EleViewRsp) Descriptor ¶
func (*EleViewRsp) Descriptor() ([]byte, []int)
func (*EleViewRsp) GetCode ¶
func (m *EleViewRsp) GetCode() int64
func (*EleViewRsp) GetElement ¶
func (m *EleViewRsp) GetElement() []*Element
func (*EleViewRsp) GetMessage ¶
func (m *EleViewRsp) GetMessage() string
func (*EleViewRsp) ProtoMessage ¶
func (*EleViewRsp) ProtoMessage()
func (*EleViewRsp) Reset ¶
func (m *EleViewRsp) Reset()
func (*EleViewRsp) String ¶
func (m *EleViewRsp) String() string
func (*EleViewRsp) XXX_DiscardUnknown ¶
func (m *EleViewRsp) XXX_DiscardUnknown()
func (*EleViewRsp) XXX_Marshal ¶
func (m *EleViewRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EleViewRsp) XXX_Merge ¶
func (m *EleViewRsp) XXX_Merge(src proto.Message)
func (*EleViewRsp) XXX_Size ¶
func (m *EleViewRsp) XXX_Size() int
func (*EleViewRsp) XXX_Unmarshal ¶
func (m *EleViewRsp) XXX_Unmarshal(b []byte) error
type Element ¶
type Element struct { Uid uint64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"Uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Mode string `protobuf:"bytes,3,opt,name=Mode,proto3" json:"Mode,omitempty"` Star bool `protobuf:"varint,4,opt,name=Star,proto3" json:"Star,omitempty"` Sort int64 `protobuf:"varint,5,opt,name=Sort,proto3" json:"Sort,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Element) Descriptor ¶
func (*Element) ProtoMessage ¶
func (*Element) ProtoMessage()
func (*Element) XXX_DiscardUnknown ¶
func (m *Element) XXX_DiscardUnknown()
func (*Element) XXX_Marshal ¶
func (*Element) XXX_Unmarshal ¶
type PairClient ¶
type PairClient interface { ElementSave(ctx context.Context, in *EleSaveReq, opts ...grpc.CallOption) (*Response, error) ElementView(ctx context.Context, in *EleViewReq, opts ...grpc.CallOption) (*EleViewRsp, error) ElementList(ctx context.Context, in *EleListReq, opts ...grpc.CallOption) (*ELeListRsp, error) ElementPair(ctx context.Context, in *ElePairReq, opts ...grpc.CallOption) (*ELeListRsp, error) }
PairClient is the client API for Pair service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPairClient ¶
func NewPairClient(cc *grpc.ClientConn) PairClient
type PairServer ¶
type PairServer interface { ElementSave(context.Context, *EleSaveReq) (*Response, error) ElementView(context.Context, *EleViewReq) (*EleViewRsp, error) ElementList(context.Context, *EleListReq) (*ELeListRsp, error) ElementPair(context.Context, *ElePairReq) (*ELeListRsp, error) }
PairServer is the server API for Pair service.
type Response ¶
type Response struct { Code int64 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type UnimplementedPairServer ¶
type UnimplementedPairServer struct { }
UnimplementedPairServer can be embedded to have forward compatible implementations.
func (*UnimplementedPairServer) ElementList ¶
func (*UnimplementedPairServer) ElementList(ctx context.Context, req *EleListReq) (*ELeListRsp, error)
func (*UnimplementedPairServer) ElementPair ¶
func (*UnimplementedPairServer) ElementPair(ctx context.Context, req *ElePairReq) (*ELeListRsp, error)
func (*UnimplementedPairServer) ElementSave ¶
func (*UnimplementedPairServer) ElementSave(ctx context.Context, req *EleSaveReq) (*Response, error)
func (*UnimplementedPairServer) ElementView ¶
func (*UnimplementedPairServer) ElementView(ctx context.Context, req *EleViewReq) (*EleViewRsp, error)
type UserElement ¶
type UserElement struct { Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=Avatar,proto3" json:"Avatar,omitempty"` Account string `protobuf:"bytes,4,opt,name=Account,proto3" json:"Account,omitempty"` Element []*Element `protobuf:"bytes,5,rep,name=Element,proto3" json:"Element,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserElement) Descriptor ¶
func (*UserElement) Descriptor() ([]byte, []int)
func (*UserElement) GetAccount ¶
func (m *UserElement) GetAccount() string
func (*UserElement) GetAvatar ¶
func (m *UserElement) GetAvatar() string
func (*UserElement) GetElement ¶
func (m *UserElement) GetElement() []*Element
func (*UserElement) GetId ¶
func (m *UserElement) GetId() uint64
func (*UserElement) GetName ¶
func (m *UserElement) GetName() string
func (*UserElement) ProtoMessage ¶
func (*UserElement) ProtoMessage()
func (*UserElement) Reset ¶
func (m *UserElement) Reset()
func (*UserElement) String ¶
func (m *UserElement) String() string
func (*UserElement) XXX_DiscardUnknown ¶
func (m *UserElement) XXX_DiscardUnknown()
func (*UserElement) XXX_Marshal ¶
func (m *UserElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserElement) XXX_Merge ¶
func (m *UserElement) XXX_Merge(src proto.Message)
func (*UserElement) XXX_Size ¶
func (m *UserElement) XXX_Size() int
func (*UserElement) XXX_Unmarshal ¶
func (m *UserElement) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.