Documentation ¶
Overview ¶
Package ranksv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterRankServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRankServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RankServiceClient) error
- func RegisterRankServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRankServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RankServiceServer) error
- func RegisterRankServiceServer(s grpc.ServiceRegistrar, srv RankServiceServer)
- type CreateRankRequest
- func (*CreateRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRankRequest) GetAaid() int32
- func (x *CreateRankRequest) GetRank() *Rank
- func (*CreateRankRequest) ProtoMessage()
- func (x *CreateRankRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRankRequest) Reset()
- func (x *CreateRankRequest) String() string
- type CreateRankResponse
- type DeleteRankRequest
- func (*DeleteRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRankRequest) GetAaid() int32
- func (x *DeleteRankRequest) GetId() int32
- func (*DeleteRankRequest) ProtoMessage()
- func (x *DeleteRankRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRankRequest) Reset()
- func (x *DeleteRankRequest) String() string
- type DeleteRankResponse
- func (*DeleteRankResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRankResponse) GetAaid() int32
- func (x *DeleteRankResponse) GetId() int32
- func (*DeleteRankResponse) ProtoMessage()
- func (x *DeleteRankResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRankResponse) Reset()
- func (x *DeleteRankResponse) String() string
- type GetRankRequest
- func (*GetRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRankRequest) GetAaid() int32
- func (x *GetRankRequest) GetId() int32
- func (*GetRankRequest) ProtoMessage()
- func (x *GetRankRequest) ProtoReflect() protoreflect.Message
- func (x *GetRankRequest) Reset()
- func (x *GetRankRequest) String() string
- type GetRankResponse
- func (*GetRankResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRankResponse) GetAaid() int32
- func (x *GetRankResponse) GetId() int32
- func (x *GetRankResponse) GetRank() *Rank
- func (*GetRankResponse) ProtoMessage()
- func (x *GetRankResponse) ProtoReflect() protoreflect.Message
- func (x *GetRankResponse) Reset()
- func (x *GetRankResponse) String() string
- type ListRanksRequest
- type ListRanksResponse
- func (*ListRanksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRanksResponse) GetAaid() int32
- func (x *ListRanksResponse) GetRank() *Rank
- func (*ListRanksResponse) ProtoMessage()
- func (x *ListRanksResponse) ProtoReflect() protoreflect.Message
- func (x *ListRanksResponse) Reset()
- func (x *ListRanksResponse) String() string
- type Rank
- func (*Rank) Descriptor() ([]byte, []int)deprecated
- func (x *Rank) GetCost() int32
- func (x *Rank) GetDescSid() int32
- func (x *Rank) GetEffects() []*RankEffect
- func (x *Rank) GetExpansion() int32
- func (x *Rank) GetId() int32
- func (x *Rank) GetLevelReq() int32
- func (x *Rank) GetLowerHotkeySid() int32
- func (x *Rank) GetNextId() int32
- func (x *Rank) GetPrereqs() []*RankPrereq
- func (x *Rank) GetPrevId() int32
- func (x *Rank) GetRecastTime() int32
- func (x *Rank) GetSpell() int32
- func (x *Rank) GetSpellType() int32
- func (x *Rank) GetTitleSid() int32
- func (x *Rank) GetUpperHotkeySid() int32
- func (*Rank) ProtoMessage()
- func (x *Rank) ProtoReflect() protoreflect.Message
- func (x *Rank) Reset()
- func (x *Rank) String() string
- type RankEffect
- func (*RankEffect) Descriptor() ([]byte, []int)deprecated
- func (x *RankEffect) GetBase1() int32
- func (x *RankEffect) GetBase2() int32
- func (x *RankEffect) GetEffectId() int32
- func (x *RankEffect) GetRankId() int32
- func (x *RankEffect) GetSlot() int32
- func (*RankEffect) ProtoMessage()
- func (x *RankEffect) ProtoReflect() protoreflect.Message
- func (x *RankEffect) Reset()
- func (x *RankEffect) String() string
- type RankPrereq
- func (*RankPrereq) Descriptor() ([]byte, []int)deprecated
- func (x *RankPrereq) GetAaId() int32
- func (x *RankPrereq) GetPoints() int32
- func (x *RankPrereq) GetRankId() int32
- func (*RankPrereq) ProtoMessage()
- func (x *RankPrereq) ProtoReflect() protoreflect.Message
- func (x *RankPrereq) Reset()
- func (x *RankPrereq) String() string
- type RankServiceClient
- type RankServiceServer
- type RankService_ListRanksClient
- type RankService_ListRanksServer
- type UnimplementedRankServiceServer
- func (UnimplementedRankServiceServer) CreateRank(context.Context, *CreateRankRequest) (*CreateRankResponse, error)
- func (UnimplementedRankServiceServer) DeleteRank(context.Context, *DeleteRankRequest) (*DeleteRankResponse, error)
- func (UnimplementedRankServiceServer) GetRank(context.Context, *GetRankRequest) (*GetRankResponse, error)
- func (UnimplementedRankServiceServer) ListRanks(*ListRanksRequest, RankService_ListRanksServer) error
- func (UnimplementedRankServiceServer) UpdateRank(context.Context, *UpdateRankRequest) (*UpdateRankResponse, error)
- type UnsafeRankServiceServer
- type UpdateRankRequest
- func (*UpdateRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRankRequest) GetAaid() int32
- func (x *UpdateRankRequest) GetId() int32
- func (x *UpdateRankRequest) GetRank() *Rank
- func (*UpdateRankRequest) ProtoMessage()
- func (x *UpdateRankRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRankRequest) Reset()
- func (x *UpdateRankRequest) String() string
- type UpdateRankResponse
Constants ¶
const ( RankService_ListRanks_FullMethodName = "/aas.ranks.v1.RankService/ListRanks" RankService_CreateRank_FullMethodName = "/aas.ranks.v1.RankService/CreateRank" RankService_GetRank_FullMethodName = "/aas.ranks.v1.RankService/GetRank" RankService_UpdateRank_FullMethodName = "/aas.ranks.v1.RankService/UpdateRank" RankService_DeleteRank_FullMethodName = "/aas.ranks.v1.RankService/DeleteRank" )
Variables ¶
var File_aas_ranks_v1_ranks_proto protoreflect.FileDescriptor
var RankService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aas.ranks.v1.RankService", HandlerType: (*RankServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRank", Handler: _RankService_CreateRank_Handler, }, { MethodName: "GetRank", Handler: _RankService_GetRank_Handler, }, { MethodName: "UpdateRank", Handler: _RankService_UpdateRank_Handler, }, { MethodName: "DeleteRank", Handler: _RankService_DeleteRank_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListRanks", Handler: _RankService_ListRanks_Handler, ServerStreams: true, }, }, Metadata: "aas/ranks/v1/ranks.proto", }
RankService_ServiceDesc is the grpc.ServiceDesc for RankService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRankServiceHandler ¶
func RegisterRankServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRankServiceHandler registers the http handlers for service RankService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRankServiceHandlerClient ¶
func RegisterRankServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RankServiceClient) error
RegisterRankServiceHandlerClient registers the http handlers for service RankService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RankServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RankServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RankServiceClient" to call the correct interceptors.
func RegisterRankServiceHandlerFromEndpoint ¶
func RegisterRankServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRankServiceHandlerFromEndpoint is same as RegisterRankServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRankServiceHandlerServer ¶
func RegisterRankServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RankServiceServer) error
RegisterRankServiceHandlerServer registers the http handlers for service RankService to "mux". UnaryRPC :call RankServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRankServiceHandlerFromEndpoint instead.
func RegisterRankServiceServer ¶
func RegisterRankServiceServer(s grpc.ServiceRegistrar, srv RankServiceServer)
Types ¶
type CreateRankRequest ¶
type CreateRankRequest struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Rank *Rank `protobuf:"bytes,2,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*CreateRankRequest) Descriptor
deprecated
func (*CreateRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRankRequest.ProtoReflect.Descriptor instead.
func (*CreateRankRequest) GetAaid ¶
func (x *CreateRankRequest) GetAaid() int32
func (*CreateRankRequest) GetRank ¶
func (x *CreateRankRequest) GetRank() *Rank
func (*CreateRankRequest) ProtoMessage ¶
func (*CreateRankRequest) ProtoMessage()
func (*CreateRankRequest) ProtoReflect ¶
func (x *CreateRankRequest) ProtoReflect() protoreflect.Message
func (*CreateRankRequest) Reset ¶
func (x *CreateRankRequest) Reset()
func (*CreateRankRequest) String ¶
func (x *CreateRankRequest) String() string
type CreateRankResponse ¶
type CreateRankResponse struct { Rank *Rank `protobuf:"bytes,1,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*CreateRankResponse) Descriptor
deprecated
func (*CreateRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRankResponse.ProtoReflect.Descriptor instead.
func (*CreateRankResponse) GetRank ¶
func (x *CreateRankResponse) GetRank() *Rank
func (*CreateRankResponse) ProtoMessage ¶
func (*CreateRankResponse) ProtoMessage()
func (*CreateRankResponse) ProtoReflect ¶
func (x *CreateRankResponse) ProtoReflect() protoreflect.Message
func (*CreateRankResponse) Reset ¶
func (x *CreateRankResponse) Reset()
func (*CreateRankResponse) String ¶
func (x *CreateRankResponse) String() string
type DeleteRankRequest ¶
type DeleteRankRequest struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRankRequest) Descriptor
deprecated
func (*DeleteRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRankRequest.ProtoReflect.Descriptor instead.
func (*DeleteRankRequest) GetAaid ¶
func (x *DeleteRankRequest) GetAaid() int32
func (*DeleteRankRequest) GetId ¶
func (x *DeleteRankRequest) GetId() int32
func (*DeleteRankRequest) ProtoMessage ¶
func (*DeleteRankRequest) ProtoMessage()
func (*DeleteRankRequest) ProtoReflect ¶
func (x *DeleteRankRequest) ProtoReflect() protoreflect.Message
func (*DeleteRankRequest) Reset ¶
func (x *DeleteRankRequest) Reset()
func (*DeleteRankRequest) String ¶
func (x *DeleteRankRequest) String() string
type DeleteRankResponse ¶
type DeleteRankResponse struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRankResponse) Descriptor
deprecated
func (*DeleteRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRankResponse.ProtoReflect.Descriptor instead.
func (*DeleteRankResponse) GetAaid ¶
func (x *DeleteRankResponse) GetAaid() int32
func (*DeleteRankResponse) GetId ¶
func (x *DeleteRankResponse) GetId() int32
func (*DeleteRankResponse) ProtoMessage ¶
func (*DeleteRankResponse) ProtoMessage()
func (*DeleteRankResponse) ProtoReflect ¶
func (x *DeleteRankResponse) ProtoReflect() protoreflect.Message
func (*DeleteRankResponse) Reset ¶
func (x *DeleteRankResponse) Reset()
func (*DeleteRankResponse) String ¶
func (x *DeleteRankResponse) String() string
type GetRankRequest ¶
type GetRankRequest struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRankRequest) Descriptor
deprecated
func (*GetRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRankRequest.ProtoReflect.Descriptor instead.
func (*GetRankRequest) GetAaid ¶
func (x *GetRankRequest) GetAaid() int32
func (*GetRankRequest) GetId ¶
func (x *GetRankRequest) GetId() int32
func (*GetRankRequest) ProtoMessage ¶
func (*GetRankRequest) ProtoMessage()
func (*GetRankRequest) ProtoReflect ¶
func (x *GetRankRequest) ProtoReflect() protoreflect.Message
func (*GetRankRequest) Reset ¶
func (x *GetRankRequest) Reset()
func (*GetRankRequest) String ¶
func (x *GetRankRequest) String() string
type GetRankResponse ¶
type GetRankResponse struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Rank *Rank `protobuf:"bytes,3,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*GetRankResponse) Descriptor
deprecated
func (*GetRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRankResponse.ProtoReflect.Descriptor instead.
func (*GetRankResponse) GetAaid ¶
func (x *GetRankResponse) GetAaid() int32
func (*GetRankResponse) GetId ¶
func (x *GetRankResponse) GetId() int32
func (*GetRankResponse) GetRank ¶
func (x *GetRankResponse) GetRank() *Rank
func (*GetRankResponse) ProtoMessage ¶
func (*GetRankResponse) ProtoMessage()
func (*GetRankResponse) ProtoReflect ¶
func (x *GetRankResponse) ProtoReflect() protoreflect.Message
func (*GetRankResponse) Reset ¶
func (x *GetRankResponse) Reset()
func (*GetRankResponse) String ¶
func (x *GetRankResponse) String() string
type ListRanksRequest ¶
type ListRanksRequest struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` // contains filtered or unexported fields }
func (*ListRanksRequest) Descriptor
deprecated
func (*ListRanksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRanksRequest.ProtoReflect.Descriptor instead.
func (*ListRanksRequest) GetAaid ¶
func (x *ListRanksRequest) GetAaid() int32
func (*ListRanksRequest) ProtoMessage ¶
func (*ListRanksRequest) ProtoMessage()
func (*ListRanksRequest) ProtoReflect ¶
func (x *ListRanksRequest) ProtoReflect() protoreflect.Message
func (*ListRanksRequest) Reset ¶
func (x *ListRanksRequest) Reset()
func (*ListRanksRequest) String ¶
func (x *ListRanksRequest) String() string
type ListRanksResponse ¶
type ListRanksResponse struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Rank *Rank `protobuf:"bytes,2,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*ListRanksResponse) Descriptor
deprecated
func (*ListRanksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRanksResponse.ProtoReflect.Descriptor instead.
func (*ListRanksResponse) GetAaid ¶
func (x *ListRanksResponse) GetAaid() int32
func (*ListRanksResponse) GetRank ¶
func (x *ListRanksResponse) GetRank() *Rank
func (*ListRanksResponse) ProtoMessage ¶
func (*ListRanksResponse) ProtoMessage()
func (*ListRanksResponse) ProtoReflect ¶
func (x *ListRanksResponse) ProtoReflect() protoreflect.Message
func (*ListRanksResponse) Reset ¶
func (x *ListRanksResponse) Reset()
func (*ListRanksResponse) String ¶
func (x *ListRanksResponse) String() string
type Rank ¶
type Rank struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UpperHotkeySid int32 `protobuf:"varint,2,opt,name=upper_hotkey_sid,json=upperHotkeySid,proto3" json:"upper_hotkey_sid,omitempty"` LowerHotkeySid int32 `protobuf:"varint,3,opt,name=lower_hotkey_sid,json=lowerHotkeySid,proto3" json:"lower_hotkey_sid,omitempty"` TitleSid int32 `protobuf:"varint,4,opt,name=title_sid,json=titleSid,proto3" json:"title_sid,omitempty"` DescSid int32 `protobuf:"varint,5,opt,name=desc_sid,json=descSid,proto3" json:"desc_sid,omitempty"` Cost int32 `protobuf:"varint,6,opt,name=cost,proto3" json:"cost,omitempty"` LevelReq int32 `protobuf:"varint,7,opt,name=level_req,json=levelReq,proto3" json:"level_req,omitempty"` Spell int32 `protobuf:"varint,8,opt,name=spell,proto3" json:"spell,omitempty"` SpellType int32 `protobuf:"varint,9,opt,name=spell_type,json=spellType,proto3" json:"spell_type,omitempty"` RecastTime int32 `protobuf:"varint,10,opt,name=recast_time,json=recastTime,proto3" json:"recast_time,omitempty"` Expansion int32 `protobuf:"varint,11,opt,name=expansion,proto3" json:"expansion,omitempty"` PrevId int32 `protobuf:"varint,12,opt,name=prev_id,json=prevId,proto3" json:"prev_id,omitempty"` NextId int32 `protobuf:"varint,13,opt,name=next_id,json=nextId,proto3" json:"next_id,omitempty"` Effects []*RankEffect `protobuf:"bytes,14,rep,name=effects,proto3" json:"effects,omitempty"` Prereqs []*RankPrereq `protobuf:"bytes,15,rep,name=prereqs,proto3" json:"prereqs,omitempty"` // contains filtered or unexported fields }
func (*Rank) Descriptor
deprecated
func (*Rank) GetDescSid ¶
func (*Rank) GetEffects ¶
func (x *Rank) GetEffects() []*RankEffect
func (*Rank) GetExpansion ¶
func (*Rank) GetLevelReq ¶
func (*Rank) GetLowerHotkeySid ¶
func (*Rank) GetPrereqs ¶
func (x *Rank) GetPrereqs() []*RankPrereq
func (*Rank) GetRecastTime ¶
func (*Rank) GetSpellType ¶
func (*Rank) GetTitleSid ¶
func (*Rank) GetUpperHotkeySid ¶
func (*Rank) ProtoMessage ¶
func (*Rank) ProtoMessage()
func (*Rank) ProtoReflect ¶
func (x *Rank) ProtoReflect() protoreflect.Message
type RankEffect ¶
type RankEffect struct { RankId int32 `protobuf:"varint,1,opt,name=rank_id,json=rankId,proto3" json:"rank_id,omitempty"` Slot int32 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"` EffectId int32 `protobuf:"varint,3,opt,name=effect_id,json=effectId,proto3" json:"effect_id,omitempty"` Base1 int32 `protobuf:"varint,4,opt,name=base1,proto3" json:"base1,omitempty"` Base2 int32 `protobuf:"varint,5,opt,name=base2,proto3" json:"base2,omitempty"` // contains filtered or unexported fields }
func (*RankEffect) Descriptor
deprecated
func (*RankEffect) Descriptor() ([]byte, []int)
Deprecated: Use RankEffect.ProtoReflect.Descriptor instead.
func (*RankEffect) GetBase1 ¶
func (x *RankEffect) GetBase1() int32
func (*RankEffect) GetBase2 ¶
func (x *RankEffect) GetBase2() int32
func (*RankEffect) GetEffectId ¶
func (x *RankEffect) GetEffectId() int32
func (*RankEffect) GetRankId ¶
func (x *RankEffect) GetRankId() int32
func (*RankEffect) GetSlot ¶
func (x *RankEffect) GetSlot() int32
func (*RankEffect) ProtoMessage ¶
func (*RankEffect) ProtoMessage()
func (*RankEffect) ProtoReflect ¶
func (x *RankEffect) ProtoReflect() protoreflect.Message
func (*RankEffect) Reset ¶
func (x *RankEffect) Reset()
func (*RankEffect) String ¶
func (x *RankEffect) String() string
type RankPrereq ¶
type RankPrereq struct { RankId int32 `protobuf:"varint,1,opt,name=rank_id,json=rankId,proto3" json:"rank_id,omitempty"` AaId int32 `protobuf:"varint,2,opt,name=aa_id,json=aaId,proto3" json:"aa_id,omitempty"` Points int32 `protobuf:"varint,3,opt,name=points,proto3" json:"points,omitempty"` // contains filtered or unexported fields }
func (*RankPrereq) Descriptor
deprecated
func (*RankPrereq) Descriptor() ([]byte, []int)
Deprecated: Use RankPrereq.ProtoReflect.Descriptor instead.
func (*RankPrereq) GetAaId ¶
func (x *RankPrereq) GetAaId() int32
func (*RankPrereq) GetPoints ¶
func (x *RankPrereq) GetPoints() int32
func (*RankPrereq) GetRankId ¶
func (x *RankPrereq) GetRankId() int32
func (*RankPrereq) ProtoMessage ¶
func (*RankPrereq) ProtoMessage()
func (*RankPrereq) ProtoReflect ¶
func (x *RankPrereq) ProtoReflect() protoreflect.Message
func (*RankPrereq) Reset ¶
func (x *RankPrereq) Reset()
func (*RankPrereq) String ¶
func (x *RankPrereq) String() string
type RankServiceClient ¶
type RankServiceClient interface { ListRanks(ctx context.Context, in *ListRanksRequest, opts ...grpc.CallOption) (RankService_ListRanksClient, error) CreateRank(ctx context.Context, in *CreateRankRequest, opts ...grpc.CallOption) (*CreateRankResponse, error) GetRank(ctx context.Context, in *GetRankRequest, opts ...grpc.CallOption) (*GetRankResponse, error) UpdateRank(ctx context.Context, in *UpdateRankRequest, opts ...grpc.CallOption) (*UpdateRankResponse, error) DeleteRank(ctx context.Context, in *DeleteRankRequest, opts ...grpc.CallOption) (*DeleteRankResponse, error) }
RankServiceClient is the client API for RankService 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 NewRankServiceClient ¶
func NewRankServiceClient(cc grpc.ClientConnInterface) RankServiceClient
type RankServiceServer ¶
type RankServiceServer interface { ListRanks(*ListRanksRequest, RankService_ListRanksServer) error CreateRank(context.Context, *CreateRankRequest) (*CreateRankResponse, error) GetRank(context.Context, *GetRankRequest) (*GetRankResponse, error) UpdateRank(context.Context, *UpdateRankRequest) (*UpdateRankResponse, error) DeleteRank(context.Context, *DeleteRankRequest) (*DeleteRankResponse, error) }
RankServiceServer is the server API for RankService service. All implementations should embed UnimplementedRankServiceServer for forward compatibility
type RankService_ListRanksClient ¶
type RankService_ListRanksClient interface { Recv() (*ListRanksResponse, error) grpc.ClientStream }
type RankService_ListRanksServer ¶
type RankService_ListRanksServer interface { Send(*ListRanksResponse) error grpc.ServerStream }
type UnimplementedRankServiceServer ¶
type UnimplementedRankServiceServer struct { }
UnimplementedRankServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRankServiceServer) CreateRank ¶
func (UnimplementedRankServiceServer) CreateRank(context.Context, *CreateRankRequest) (*CreateRankResponse, error)
func (UnimplementedRankServiceServer) DeleteRank ¶
func (UnimplementedRankServiceServer) DeleteRank(context.Context, *DeleteRankRequest) (*DeleteRankResponse, error)
func (UnimplementedRankServiceServer) GetRank ¶
func (UnimplementedRankServiceServer) GetRank(context.Context, *GetRankRequest) (*GetRankResponse, error)
func (UnimplementedRankServiceServer) ListRanks ¶
func (UnimplementedRankServiceServer) ListRanks(*ListRanksRequest, RankService_ListRanksServer) error
func (UnimplementedRankServiceServer) UpdateRank ¶
func (UnimplementedRankServiceServer) UpdateRank(context.Context, *UpdateRankRequest) (*UpdateRankResponse, error)
type UnsafeRankServiceServer ¶
type UnsafeRankServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRankServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RankServiceServer will result in compilation errors.
type UpdateRankRequest ¶
type UpdateRankRequest struct { Aaid int32 `protobuf:"varint,1,opt,name=aaid,proto3" json:"aaid,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Rank *Rank `protobuf:"bytes,3,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*UpdateRankRequest) Descriptor
deprecated
func (*UpdateRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRankRequest.ProtoReflect.Descriptor instead.
func (*UpdateRankRequest) GetAaid ¶
func (x *UpdateRankRequest) GetAaid() int32
func (*UpdateRankRequest) GetId ¶
func (x *UpdateRankRequest) GetId() int32
func (*UpdateRankRequest) GetRank ¶
func (x *UpdateRankRequest) GetRank() *Rank
func (*UpdateRankRequest) ProtoMessage ¶
func (*UpdateRankRequest) ProtoMessage()
func (*UpdateRankRequest) ProtoReflect ¶
func (x *UpdateRankRequest) ProtoReflect() protoreflect.Message
func (*UpdateRankRequest) Reset ¶
func (x *UpdateRankRequest) Reset()
func (*UpdateRankRequest) String ¶
func (x *UpdateRankRequest) String() string
type UpdateRankResponse ¶
type UpdateRankResponse struct { Rank *Rank `protobuf:"bytes,1,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*UpdateRankResponse) Descriptor
deprecated
func (*UpdateRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRankResponse.ProtoReflect.Descriptor instead.
func (*UpdateRankResponse) GetRank ¶
func (x *UpdateRankResponse) GetRank() *Rank
func (*UpdateRankResponse) ProtoMessage ¶
func (*UpdateRankResponse) ProtoMessage()
func (*UpdateRankResponse) ProtoReflect ¶
func (x *UpdateRankResponse) ProtoReflect() protoreflect.Message
func (*UpdateRankResponse) Reset ¶
func (x *UpdateRankResponse) Reset()
func (*UpdateRankResponse) String ¶
func (x *UpdateRankResponse) String() string