pair

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPairServer

func RegisterPairServer(s *grpc.Server, srv PairServer)

Types

type ELeListRsq

type ELeListRsq 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 (*ELeListRsq) Descriptor

func (*ELeListRsq) Descriptor() ([]byte, []int)

func (*ELeListRsq) GetCode

func (m *ELeListRsq) GetCode() int64

func (*ELeListRsq) GetMessage

func (m *ELeListRsq) GetMessage() string

func (*ELeListRsq) GetPage

func (m *ELeListRsq) GetPage() int64

func (*ELeListRsq) GetPageSize

func (m *ELeListRsq) GetPageSize() int64

func (*ELeListRsq) GetTotal

func (m *ELeListRsq) GetTotal() int64

func (*ELeListRsq) GetUserElement

func (m *ELeListRsq) GetUserElement() []*UserElement

func (*ELeListRsq) ProtoMessage

func (*ELeListRsq) ProtoMessage()

func (*ELeListRsq) Reset

func (m *ELeListRsq) Reset()

func (*ELeListRsq) String

func (m *ELeListRsq) String() string

func (*ELeListRsq) XXX_DiscardUnknown

func (m *ELeListRsq) XXX_DiscardUnknown()

func (*ELeListRsq) XXX_Marshal

func (m *ELeListRsq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ELeListRsq) XXX_Merge

func (m *ELeListRsq) XXX_Merge(src proto.Message)

func (*ELeListRsq) XXX_Size

func (m *ELeListRsq) XXX_Size() int

func (*ELeListRsq) XXX_Unmarshal

func (m *ELeListRsq) 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) Descriptor() ([]byte, []int)

func (*Element) GetMode

func (m *Element) GetMode() string

func (*Element) GetName

func (m *Element) GetName() string

func (*Element) GetSort

func (m *Element) GetSort() int64

func (*Element) GetStar

func (m *Element) GetStar() bool

func (*Element) GetUid

func (m *Element) GetUid() uint64

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) Reset

func (m *Element) Reset()

func (*Element) String

func (m *Element) String() string

func (*Element) XXX_DiscardUnknown

func (m *Element) XXX_DiscardUnknown()

func (*Element) XXX_Marshal

func (m *Element) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Element) XXX_Merge

func (m *Element) XXX_Merge(src proto.Message)

func (*Element) XXX_Size

func (m *Element) XXX_Size() int

func (*Element) XXX_Unmarshal

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

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) (*ELeListRsq, error)
	ElementPair(ctx context.Context, in *ElePairReq, opts ...grpc.CallOption) (*ELeListRsq, 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) (*ELeListRsq, error)
	ElementPair(context.Context, *ElePairReq) (*ELeListRsq, 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) Descriptor() ([]byte, []int)

func (*Response) GetCode

func (m *Response) GetCode() int64

func (*Response) GetMessage

func (m *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

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) (*ELeListRsq, error)

func (*UnimplementedPairServer) ElementPair

func (*UnimplementedPairServer) ElementPair(ctx context.Context, req *ElePairReq) (*ELeListRsq, 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 added in v1.0.2

func (m *UserElement) GetAccount() string

func (*UserElement) GetAvatar added in v1.0.2

func (m *UserElement) GetAvatar() string

func (*UserElement) GetElement

func (m *UserElement) GetElement() []*Element

func (*UserElement) GetId added in v1.0.2

func (m *UserElement) GetId() uint64

func (*UserElement) GetName added in v1.0.2

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

Jump to

Keyboard shortcuts

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