Documentation ¶
Index ¶
- Variables
- func RegisterClubServer(s *grpc.Server, srv ClubServer)
- type ClubClient
- type ClubServer
- type GetReply
- func (*GetReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetReply) GetMessage() string
- func (x *GetReply) GetResult() string
- func (x *GetReply) GetStatus() string
- func (*GetReply) ProtoMessage()
- func (x *GetReply) ProtoReflect() protoreflect.Message
- func (x *GetReply) Reset()
- func (x *GetReply) String() string
- type GetRequest
- type IndexReply
- func (*IndexReply) Descriptor() ([]byte, []int)deprecated
- func (x *IndexReply) GetItems() []*Item
- func (x *IndexReply) GetMessage() string
- func (x *IndexReply) GetStatus() string
- func (*IndexReply) ProtoMessage()
- func (x *IndexReply) ProtoReflect() protoreflect.Message
- func (x *IndexReply) Reset()
- func (x *IndexReply) String() string
- type IndexRequest
- func (*IndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IndexRequest) GetFilter() []*Query
- func (x *IndexRequest) GetFrom() int32
- func (x *IndexRequest) GetSize() int32
- func (x *IndexRequest) GetToken() string
- func (*IndexRequest) ProtoMessage()
- func (x *IndexRequest) ProtoReflect() protoreflect.Message
- func (x *IndexRequest) Reset()
- func (x *IndexRequest) String() string
- type Item
- type Query
- type UnimplementedClubServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_club_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClubServer ¶
func RegisterClubServer(s *grpc.Server, srv ClubServer)
Types ¶
type ClubClient ¶
type ClubClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error) Index(ctx context.Context, in *IndexRequest, opts ...grpc.CallOption) (*IndexReply, error) }
ClubClient is the client API for Club service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClubClient ¶
func NewClubClient(cc grpc.ClientConnInterface) ClubClient
type ClubServer ¶
type ClubServer interface { Get(context.Context, *GetRequest) (*GetReply, error) Index(context.Context, *IndexRequest) (*IndexReply, error) }
ClubServer is the server API for Club service.
type GetReply ¶
type GetReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Result string `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*GetReply) Descriptor
deprecated
func (*GetReply) GetMessage ¶
func (*GetReply) ProtoMessage ¶
func (*GetReply) ProtoMessage()
func (*GetReply) ProtoReflect ¶
func (x *GetReply) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetToken ¶
func (x *GetRequest) GetToken() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type IndexReply ¶
type IndexReply struct { Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*IndexReply) Descriptor
deprecated
func (*IndexReply) Descriptor() ([]byte, []int)
Deprecated: Use IndexReply.ProtoReflect.Descriptor instead.
func (*IndexReply) GetItems ¶
func (x *IndexReply) GetItems() []*Item
func (*IndexReply) GetMessage ¶
func (x *IndexReply) GetMessage() string
func (*IndexReply) GetStatus ¶
func (x *IndexReply) GetStatus() string
func (*IndexReply) ProtoMessage ¶
func (*IndexReply) ProtoMessage()
func (*IndexReply) ProtoReflect ¶
func (x *IndexReply) ProtoReflect() protoreflect.Message
func (*IndexReply) Reset ¶
func (x *IndexReply) Reset()
func (*IndexReply) String ¶
func (x *IndexReply) String() string
type IndexRequest ¶
type IndexRequest struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` // from 20 Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // take 30 Filter []*Query `protobuf:"bytes,4,rep,name=filter,proto3" json:"filter,omitempty"` // filter Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*IndexRequest) Descriptor
deprecated
func (*IndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use IndexRequest.ProtoReflect.Descriptor instead.
func (*IndexRequest) GetFilter ¶
func (x *IndexRequest) GetFilter() []*Query
func (*IndexRequest) GetFrom ¶
func (x *IndexRequest) GetFrom() int32
func (*IndexRequest) GetSize ¶
func (x *IndexRequest) GetSize() int32
func (*IndexRequest) GetToken ¶
func (x *IndexRequest) GetToken() string
func (*IndexRequest) ProtoMessage ¶
func (*IndexRequest) ProtoMessage()
func (*IndexRequest) ProtoReflect ¶
func (x *IndexRequest) ProtoReflect() protoreflect.Message
func (*IndexRequest) Reset ¶
func (x *IndexRequest) Reset()
func (*IndexRequest) String ¶
func (x *IndexRequest) String() string
type Item ¶
type Item struct { User uint64 `protobuf:"varint,1,opt,name=user,proto3" json:"user,omitempty"` Point uint64 `protobuf:"varint,2,opt,name=point,proto3" json:"point,omitempty"` // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type UnimplementedClubServer ¶
type UnimplementedClubServer struct { }
UnimplementedClubServer can be embedded to have forward compatible implementations.
func (*UnimplementedClubServer) Get ¶
func (*UnimplementedClubServer) Get(context.Context, *GetRequest) (*GetReply, error)
func (*UnimplementedClubServer) Index ¶
func (*UnimplementedClubServer) Index(context.Context, *IndexRequest) (*IndexReply, error)
Click to show internal directories.
Click to hide internal directories.