pair

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pair_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pair.Pair",
	HandlerType: (*PairServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ElementSave",
			Handler:    _Pair_ElementSave_Handler,
		},
		{
			MethodName: "ElementView",
			Handler:    _Pair_ElementView_Handler,
		},
		{
			MethodName: "ElementList",
			Handler:    _Pair_ElementList_Handler,
		},
		{
			MethodName: "ElementPair",
			Handler:    _Pair_ElementPair_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pair.proto",
}

Pair_ServiceDesc is the grpc.ServiceDesc for Pair service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPairServer

func RegisterPairServer(s grpc.ServiceRegistrar, 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,opt,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,opt,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"`
	Skill                string   `protobuf:"bytes,2,opt,name=Skill,proto3" json:"Skill,omitempty"`
	SkillNeed            string   `protobuf:"bytes,3,opt,name=SkillNeed,proto3" json:"SkillNeed,omitempty"`
	Star                 bool     `protobuf:"varint,4,opt,name=Star,proto3" json:"Star,omitempty"`
	Boost                int64    `protobuf:"varint,5,opt,name=Boost,proto3" json:"Boost,omitempty"`
	HighLightSkill       string   `protobuf:"bytes,6,opt,name=HighLightSkill,proto3" json:"HighLightSkill,omitempty"`
	HighLightSkillNeed   string   `protobuf:"bytes,7,opt,name=HighLightSkillNeed,proto3" json:"HighLightSkillNeed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Element) Descriptor

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

func (*Element) GetBoost

func (m *Element) GetBoost() int64

func (*Element) GetHighLightSkill added in v1.0.4

func (m *Element) GetHighLightSkill() string

func (*Element) GetHighLightSkillNeed added in v1.0.4

func (m *Element) GetHighLightSkillNeed() string

func (*Element) GetSkill

func (m *Element) GetSkill() string

func (*Element) GetSkillNeed

func (m *Element) GetSkillNeed() string

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) (*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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPairClient

func NewPairClient(cc grpc.ClientConnInterface) 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)
	// contains filtered or unexported methods
}

PairServer is the server API for Pair service. All implementations must embed UnimplementedPairServer for forward compatibility

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 must be embedded to have forward compatible implementations.

func (UnimplementedPairServer) ElementList

func (UnimplementedPairServer) ElementPair

func (UnimplementedPairServer) ElementSave

func (UnimplementedPairServer) ElementView

type UnsafePairServer

type UnsafePairServer interface {
	// contains filtered or unexported methods
}

UnsafePairServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PairServer will result in compilation errors.

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,opt,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

Jump to

Keyboard shortcuts

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