pb

package
v0.0.0-...-618fe63 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use GetReply.ProtoReflect.Descriptor instead.

func (*GetReply) GetMessage

func (x *GetReply) GetMessage() string

func (*GetReply) GetResult

func (x *GetReply) GetResult() string

func (*GetReply) GetStatus

func (x *GetReply) GetStatus() string

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) ProtoReflect

func (x *GetReply) ProtoReflect() protoreflect.Message

func (*GetReply) Reset

func (x *GetReply) Reset()

func (*GetReply) String

func (x *GetReply) String() string

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetPoint

func (x *Item) GetPoint() uint64

func (*Item) GetUser

func (x *Item) GetUser() uint64

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetKey

func (x *Query) GetKey() string

func (*Query) GetValue

func (x *Query) GetValue() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type UnimplementedClubServer

type UnimplementedClubServer struct {
}

UnimplementedClubServer can be embedded to have forward compatible implementations.

func (*UnimplementedClubServer) Get

func (*UnimplementedClubServer) Index

Jump to

Keyboard shortcuts

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