Documentation ¶
Index ¶
- Variables
- func NewLiveRankSrvEndpoints() []*api.Endpoint
- func RegisterLiveRankSrvHandler(s server.Server, hdlr LiveRankSrvHandler, opts ...server.HandlerOption) error
- type HotLiveAnchorRankRequest
- func (*HotLiveAnchorRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HotLiveAnchorRankRequest) GetAudienceId() int64
- func (x *HotLiveAnchorRankRequest) GetCountry() string
- func (x *HotLiveAnchorRankRequest) GetType() string
- func (*HotLiveAnchorRankRequest) ProtoMessage()
- func (x *HotLiveAnchorRankRequest) ProtoReflect() protoreflect.Message
- func (x *HotLiveAnchorRankRequest) Reset()
- func (x *HotLiveAnchorRankRequest) String() string
- func (m *HotLiveAnchorRankRequest) Validate() error
- func (m *HotLiveAnchorRankRequest) ValidateAll() error
- type HotLiveAnchorRankRequestMultiError
- type HotLiveAnchorRankRequestValidationError
- func (e HotLiveAnchorRankRequestValidationError) Cause() error
- func (e HotLiveAnchorRankRequestValidationError) Error() string
- func (e HotLiveAnchorRankRequestValidationError) ErrorName() string
- func (e HotLiveAnchorRankRequestValidationError) Field() string
- func (e HotLiveAnchorRankRequestValidationError) Key() bool
- func (e HotLiveAnchorRankRequestValidationError) Reason() string
- type HotLiveAnchorRankResponse
- func (*HotLiveAnchorRankResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HotLiveAnchorRankResponse) GetCountry() string
- func (x *HotLiveAnchorRankResponse) GetType() string
- func (x *HotLiveAnchorRankResponse) GetUsers() []*UserRankInfo
- func (*HotLiveAnchorRankResponse) ProtoMessage()
- func (x *HotLiveAnchorRankResponse) ProtoReflect() protoreflect.Message
- func (x *HotLiveAnchorRankResponse) Reset()
- func (x *HotLiveAnchorRankResponse) String() string
- func (m *HotLiveAnchorRankResponse) Validate() error
- func (m *HotLiveAnchorRankResponse) ValidateAll() error
- type HotLiveAnchorRankResponseMultiError
- type HotLiveAnchorRankResponseValidationError
- func (e HotLiveAnchorRankResponseValidationError) Cause() error
- func (e HotLiveAnchorRankResponseValidationError) Error() string
- func (e HotLiveAnchorRankResponseValidationError) ErrorName() string
- func (e HotLiveAnchorRankResponseValidationError) Field() string
- func (e HotLiveAnchorRankResponseValidationError) Key() bool
- func (e HotLiveAnchorRankResponseValidationError) Reason() string
- type HotLiveAudienceRankRequest
- func (*HotLiveAudienceRankRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HotLiveAudienceRankRequest) GetAudienceId() int64
- func (x *HotLiveAudienceRankRequest) GetCountry() string
- func (x *HotLiveAudienceRankRequest) GetType() string
- func (*HotLiveAudienceRankRequest) ProtoMessage()
- func (x *HotLiveAudienceRankRequest) ProtoReflect() protoreflect.Message
- func (x *HotLiveAudienceRankRequest) Reset()
- func (x *HotLiveAudienceRankRequest) String() string
- func (m *HotLiveAudienceRankRequest) Validate() error
- func (m *HotLiveAudienceRankRequest) ValidateAll() error
- type HotLiveAudienceRankRequestMultiError
- type HotLiveAudienceRankRequestValidationError
- func (e HotLiveAudienceRankRequestValidationError) Cause() error
- func (e HotLiveAudienceRankRequestValidationError) Error() string
- func (e HotLiveAudienceRankRequestValidationError) ErrorName() string
- func (e HotLiveAudienceRankRequestValidationError) Field() string
- func (e HotLiveAudienceRankRequestValidationError) Key() bool
- func (e HotLiveAudienceRankRequestValidationError) Reason() string
- type HotLiveAudienceRankResponse
- func (*HotLiveAudienceRankResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HotLiveAudienceRankResponse) GetCountry() string
- func (x *HotLiveAudienceRankResponse) GetType() string
- func (x *HotLiveAudienceRankResponse) GetUsers() []*UserRankInfo
- func (*HotLiveAudienceRankResponse) ProtoMessage()
- func (x *HotLiveAudienceRankResponse) ProtoReflect() protoreflect.Message
- func (x *HotLiveAudienceRankResponse) Reset()
- func (x *HotLiveAudienceRankResponse) String() string
- func (m *HotLiveAudienceRankResponse) Validate() error
- func (m *HotLiveAudienceRankResponse) ValidateAll() error
- type HotLiveAudienceRankResponseMultiError
- type HotLiveAudienceRankResponseValidationError
- func (e HotLiveAudienceRankResponseValidationError) Cause() error
- func (e HotLiveAudienceRankResponseValidationError) Error() string
- func (e HotLiveAudienceRankResponseValidationError) ErrorName() string
- func (e HotLiveAudienceRankResponseValidationError) Field() string
- func (e HotLiveAudienceRankResponseValidationError) Key() bool
- func (e HotLiveAudienceRankResponseValidationError) Reason() string
- type LiveRank
- type LiveRankMultiError
- type LiveRankSrvHandler
- type LiveRankSrvService
- type LiveRankValidationError
- type UserRankInfo
- func (*UserRankInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserRankInfo) GetAvatar() string
- func (x *UserRankInfo) GetIsFollowed() bool
- func (x *UserRankInfo) GetLiveId() uint64
- func (x *UserRankInfo) GetNickname() string
- func (x *UserRankInfo) GetScore() int64
- func (x *UserRankInfo) GetSort() uint32
- func (x *UserRankInfo) GetUserId() int64
- func (*UserRankInfo) ProtoMessage()
- func (x *UserRankInfo) ProtoReflect() protoreflect.Message
- func (x *UserRankInfo) Reset()
- func (x *UserRankInfo) String() string
- func (m *UserRankInfo) Validate() error
- func (m *UserRankInfo) ValidateAll() error
- type UserRankInfoMultiError
- type UserRankInfoValidationError
- func (e UserRankInfoValidationError) Cause() error
- func (e UserRankInfoValidationError) Error() string
- func (e UserRankInfoValidationError) ErrorName() string
- func (e UserRankInfoValidationError) Field() string
- func (e UserRankInfoValidationError) Key() bool
- func (e UserRankInfoValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_liveRank_liveRank_proto protoreflect.FileDescriptor
Functions ¶
func NewLiveRankSrvEndpoints ¶
func RegisterLiveRankSrvHandler ¶
func RegisterLiveRankSrvHandler(s server.Server, hdlr LiveRankSrvHandler, opts ...server.HandlerOption) error
Types ¶
type HotLiveAnchorRankRequest ¶
type HotLiveAnchorRankRequest struct { AudienceId int64 `protobuf:"varint,1,opt,name=audience_id,json=audienceId,proto3" json:"audience_id"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country"` // contains filtered or unexported fields }
func (*HotLiveAnchorRankRequest) Descriptor
deprecated
func (*HotLiveAnchorRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use HotLiveAnchorRankRequest.ProtoReflect.Descriptor instead.
func (*HotLiveAnchorRankRequest) GetAudienceId ¶
func (x *HotLiveAnchorRankRequest) GetAudienceId() int64
func (*HotLiveAnchorRankRequest) GetCountry ¶
func (x *HotLiveAnchorRankRequest) GetCountry() string
func (*HotLiveAnchorRankRequest) GetType ¶
func (x *HotLiveAnchorRankRequest) GetType() string
func (*HotLiveAnchorRankRequest) ProtoMessage ¶
func (*HotLiveAnchorRankRequest) ProtoMessage()
func (*HotLiveAnchorRankRequest) ProtoReflect ¶
func (x *HotLiveAnchorRankRequest) ProtoReflect() protoreflect.Message
func (*HotLiveAnchorRankRequest) Reset ¶
func (x *HotLiveAnchorRankRequest) Reset()
func (*HotLiveAnchorRankRequest) String ¶
func (x *HotLiveAnchorRankRequest) String() string
func (*HotLiveAnchorRankRequest) Validate ¶
func (m *HotLiveAnchorRankRequest) Validate() error
Validate checks the field values on HotLiveAnchorRankRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HotLiveAnchorRankRequest) ValidateAll ¶
func (m *HotLiveAnchorRankRequest) ValidateAll() error
ValidateAll checks the field values on HotLiveAnchorRankRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HotLiveAnchorRankRequestMultiError, or nil if none found.
type HotLiveAnchorRankRequestMultiError ¶
type HotLiveAnchorRankRequestMultiError []error
HotLiveAnchorRankRequestMultiError is an error wrapping multiple validation errors returned by HotLiveAnchorRankRequest.ValidateAll() if the designated constraints aren't met.
func (HotLiveAnchorRankRequestMultiError) AllErrors ¶
func (m HotLiveAnchorRankRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HotLiveAnchorRankRequestMultiError) Error ¶
func (m HotLiveAnchorRankRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HotLiveAnchorRankRequestValidationError ¶
type HotLiveAnchorRankRequestValidationError struct {
// contains filtered or unexported fields
}
HotLiveAnchorRankRequestValidationError is the validation error returned by HotLiveAnchorRankRequest.Validate if the designated constraints aren't met.
func (HotLiveAnchorRankRequestValidationError) Cause ¶
func (e HotLiveAnchorRankRequestValidationError) Cause() error
Cause function returns cause value.
func (HotLiveAnchorRankRequestValidationError) Error ¶
func (e HotLiveAnchorRankRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HotLiveAnchorRankRequestValidationError) ErrorName ¶
func (e HotLiveAnchorRankRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HotLiveAnchorRankRequestValidationError) Field ¶
func (e HotLiveAnchorRankRequestValidationError) Field() string
Field function returns field value.
func (HotLiveAnchorRankRequestValidationError) Key ¶
func (e HotLiveAnchorRankRequestValidationError) Key() bool
Key function returns key value.
func (HotLiveAnchorRankRequestValidationError) Reason ¶
func (e HotLiveAnchorRankRequestValidationError) Reason() string
Reason function returns reason value.
type HotLiveAnchorRankResponse ¶
type HotLiveAnchorRankResponse struct { Users []*UserRankInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country"` // contains filtered or unexported fields }
func (*HotLiveAnchorRankResponse) Descriptor
deprecated
func (*HotLiveAnchorRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use HotLiveAnchorRankResponse.ProtoReflect.Descriptor instead.
func (*HotLiveAnchorRankResponse) GetCountry ¶
func (x *HotLiveAnchorRankResponse) GetCountry() string
func (*HotLiveAnchorRankResponse) GetType ¶
func (x *HotLiveAnchorRankResponse) GetType() string
func (*HotLiveAnchorRankResponse) GetUsers ¶
func (x *HotLiveAnchorRankResponse) GetUsers() []*UserRankInfo
func (*HotLiveAnchorRankResponse) ProtoMessage ¶
func (*HotLiveAnchorRankResponse) ProtoMessage()
func (*HotLiveAnchorRankResponse) ProtoReflect ¶
func (x *HotLiveAnchorRankResponse) ProtoReflect() protoreflect.Message
func (*HotLiveAnchorRankResponse) Reset ¶
func (x *HotLiveAnchorRankResponse) Reset()
func (*HotLiveAnchorRankResponse) String ¶
func (x *HotLiveAnchorRankResponse) String() string
func (*HotLiveAnchorRankResponse) Validate ¶
func (m *HotLiveAnchorRankResponse) Validate() error
Validate checks the field values on HotLiveAnchorRankResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HotLiveAnchorRankResponse) ValidateAll ¶
func (m *HotLiveAnchorRankResponse) ValidateAll() error
ValidateAll checks the field values on HotLiveAnchorRankResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HotLiveAnchorRankResponseMultiError, or nil if none found.
type HotLiveAnchorRankResponseMultiError ¶
type HotLiveAnchorRankResponseMultiError []error
HotLiveAnchorRankResponseMultiError is an error wrapping multiple validation errors returned by HotLiveAnchorRankResponse.ValidateAll() if the designated constraints aren't met.
func (HotLiveAnchorRankResponseMultiError) AllErrors ¶
func (m HotLiveAnchorRankResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HotLiveAnchorRankResponseMultiError) Error ¶
func (m HotLiveAnchorRankResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HotLiveAnchorRankResponseValidationError ¶
type HotLiveAnchorRankResponseValidationError struct {
// contains filtered or unexported fields
}
HotLiveAnchorRankResponseValidationError is the validation error returned by HotLiveAnchorRankResponse.Validate if the designated constraints aren't met.
func (HotLiveAnchorRankResponseValidationError) Cause ¶
func (e HotLiveAnchorRankResponseValidationError) Cause() error
Cause function returns cause value.
func (HotLiveAnchorRankResponseValidationError) Error ¶
func (e HotLiveAnchorRankResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HotLiveAnchorRankResponseValidationError) ErrorName ¶
func (e HotLiveAnchorRankResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HotLiveAnchorRankResponseValidationError) Field ¶
func (e HotLiveAnchorRankResponseValidationError) Field() string
Field function returns field value.
func (HotLiveAnchorRankResponseValidationError) Key ¶
func (e HotLiveAnchorRankResponseValidationError) Key() bool
Key function returns key value.
func (HotLiveAnchorRankResponseValidationError) Reason ¶
func (e HotLiveAnchorRankResponseValidationError) Reason() string
Reason function returns reason value.
type HotLiveAudienceRankRequest ¶
type HotLiveAudienceRankRequest struct { AudienceId int64 `protobuf:"varint,1,opt,name=audience_id,json=audienceId,proto3" json:"audience_id"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country"` // contains filtered or unexported fields }
func (*HotLiveAudienceRankRequest) Descriptor
deprecated
func (*HotLiveAudienceRankRequest) Descriptor() ([]byte, []int)
Deprecated: Use HotLiveAudienceRankRequest.ProtoReflect.Descriptor instead.
func (*HotLiveAudienceRankRequest) GetAudienceId ¶
func (x *HotLiveAudienceRankRequest) GetAudienceId() int64
func (*HotLiveAudienceRankRequest) GetCountry ¶
func (x *HotLiveAudienceRankRequest) GetCountry() string
func (*HotLiveAudienceRankRequest) GetType ¶
func (x *HotLiveAudienceRankRequest) GetType() string
func (*HotLiveAudienceRankRequest) ProtoMessage ¶
func (*HotLiveAudienceRankRequest) ProtoMessage()
func (*HotLiveAudienceRankRequest) ProtoReflect ¶
func (x *HotLiveAudienceRankRequest) ProtoReflect() protoreflect.Message
func (*HotLiveAudienceRankRequest) Reset ¶
func (x *HotLiveAudienceRankRequest) Reset()
func (*HotLiveAudienceRankRequest) String ¶
func (x *HotLiveAudienceRankRequest) String() string
func (*HotLiveAudienceRankRequest) Validate ¶
func (m *HotLiveAudienceRankRequest) Validate() error
Validate checks the field values on HotLiveAudienceRankRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HotLiveAudienceRankRequest) ValidateAll ¶
func (m *HotLiveAudienceRankRequest) ValidateAll() error
ValidateAll checks the field values on HotLiveAudienceRankRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HotLiveAudienceRankRequestMultiError, or nil if none found.
type HotLiveAudienceRankRequestMultiError ¶
type HotLiveAudienceRankRequestMultiError []error
HotLiveAudienceRankRequestMultiError is an error wrapping multiple validation errors returned by HotLiveAudienceRankRequest.ValidateAll() if the designated constraints aren't met.
func (HotLiveAudienceRankRequestMultiError) AllErrors ¶
func (m HotLiveAudienceRankRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HotLiveAudienceRankRequestMultiError) Error ¶
func (m HotLiveAudienceRankRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HotLiveAudienceRankRequestValidationError ¶
type HotLiveAudienceRankRequestValidationError struct {
// contains filtered or unexported fields
}
HotLiveAudienceRankRequestValidationError is the validation error returned by HotLiveAudienceRankRequest.Validate if the designated constraints aren't met.
func (HotLiveAudienceRankRequestValidationError) Cause ¶
func (e HotLiveAudienceRankRequestValidationError) Cause() error
Cause function returns cause value.
func (HotLiveAudienceRankRequestValidationError) Error ¶
func (e HotLiveAudienceRankRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HotLiveAudienceRankRequestValidationError) ErrorName ¶
func (e HotLiveAudienceRankRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HotLiveAudienceRankRequestValidationError) Field ¶
func (e HotLiveAudienceRankRequestValidationError) Field() string
Field function returns field value.
func (HotLiveAudienceRankRequestValidationError) Key ¶
func (e HotLiveAudienceRankRequestValidationError) Key() bool
Key function returns key value.
func (HotLiveAudienceRankRequestValidationError) Reason ¶
func (e HotLiveAudienceRankRequestValidationError) Reason() string
Reason function returns reason value.
type HotLiveAudienceRankResponse ¶
type HotLiveAudienceRankResponse struct { Users []*UserRankInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"` Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country"` // contains filtered or unexported fields }
func (*HotLiveAudienceRankResponse) Descriptor
deprecated
func (*HotLiveAudienceRankResponse) Descriptor() ([]byte, []int)
Deprecated: Use HotLiveAudienceRankResponse.ProtoReflect.Descriptor instead.
func (*HotLiveAudienceRankResponse) GetCountry ¶
func (x *HotLiveAudienceRankResponse) GetCountry() string
func (*HotLiveAudienceRankResponse) GetType ¶
func (x *HotLiveAudienceRankResponse) GetType() string
func (*HotLiveAudienceRankResponse) GetUsers ¶
func (x *HotLiveAudienceRankResponse) GetUsers() []*UserRankInfo
func (*HotLiveAudienceRankResponse) ProtoMessage ¶
func (*HotLiveAudienceRankResponse) ProtoMessage()
func (*HotLiveAudienceRankResponse) ProtoReflect ¶
func (x *HotLiveAudienceRankResponse) ProtoReflect() protoreflect.Message
func (*HotLiveAudienceRankResponse) Reset ¶
func (x *HotLiveAudienceRankResponse) Reset()
func (*HotLiveAudienceRankResponse) String ¶
func (x *HotLiveAudienceRankResponse) String() string
func (*HotLiveAudienceRankResponse) Validate ¶
func (m *HotLiveAudienceRankResponse) Validate() error
Validate checks the field values on HotLiveAudienceRankResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HotLiveAudienceRankResponse) ValidateAll ¶
func (m *HotLiveAudienceRankResponse) ValidateAll() error
ValidateAll checks the field values on HotLiveAudienceRankResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HotLiveAudienceRankResponseMultiError, or nil if none found.
type HotLiveAudienceRankResponseMultiError ¶
type HotLiveAudienceRankResponseMultiError []error
HotLiveAudienceRankResponseMultiError is an error wrapping multiple validation errors returned by HotLiveAudienceRankResponse.ValidateAll() if the designated constraints aren't met.
func (HotLiveAudienceRankResponseMultiError) AllErrors ¶
func (m HotLiveAudienceRankResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HotLiveAudienceRankResponseMultiError) Error ¶
func (m HotLiveAudienceRankResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HotLiveAudienceRankResponseValidationError ¶
type HotLiveAudienceRankResponseValidationError struct {
// contains filtered or unexported fields
}
HotLiveAudienceRankResponseValidationError is the validation error returned by HotLiveAudienceRankResponse.Validate if the designated constraints aren't met.
func (HotLiveAudienceRankResponseValidationError) Cause ¶
func (e HotLiveAudienceRankResponseValidationError) Cause() error
Cause function returns cause value.
func (HotLiveAudienceRankResponseValidationError) Error ¶
func (e HotLiveAudienceRankResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HotLiveAudienceRankResponseValidationError) ErrorName ¶
func (e HotLiveAudienceRankResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HotLiveAudienceRankResponseValidationError) Field ¶
func (e HotLiveAudienceRankResponseValidationError) Field() string
Field function returns field value.
func (HotLiveAudienceRankResponseValidationError) Key ¶
func (e HotLiveAudienceRankResponseValidationError) Key() bool
Key function returns key value.
func (HotLiveAudienceRankResponseValidationError) Reason ¶
func (e HotLiveAudienceRankResponseValidationError) Reason() string
Reason function returns reason value.
type LiveRank ¶
type LiveRank struct {
// contains filtered or unexported fields
}
func (*LiveRank) Descriptor
deprecated
func (*LiveRank) ProtoMessage ¶
func (*LiveRank) ProtoMessage()
func (*LiveRank) ProtoReflect ¶
func (x *LiveRank) ProtoReflect() protoreflect.Message
func (*LiveRank) Validate ¶
Validate checks the field values on LiveRank with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LiveRank) ValidateAll ¶
ValidateAll checks the field values on LiveRank with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LiveRankMultiError, or nil if none found.
type LiveRankMultiError ¶
type LiveRankMultiError []error
LiveRankMultiError is an error wrapping multiple validation errors returned by LiveRank.ValidateAll() if the designated constraints aren't met.
func (LiveRankMultiError) AllErrors ¶
func (m LiveRankMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LiveRankMultiError) Error ¶
func (m LiveRankMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LiveRankSrvHandler ¶
type LiveRankSrvHandler interface { // 热门直播主播榜单 HotLiveAnchorRank(context.Context, *HotLiveAnchorRankRequest, *HotLiveAnchorRankResponse) error // 热门直播观众榜单 HotLiveAudienceRank(context.Context, *HotLiveAudienceRankRequest, *HotLiveAudienceRankResponse) error }
type LiveRankSrvService ¶
type LiveRankSrvService interface { // 热门直播主播榜单 HotLiveAnchorRank(ctx context.Context, in *HotLiveAnchorRankRequest, opts ...client.CallOption) (*HotLiveAnchorRankResponse, error) // 热门直播观众榜单 HotLiveAudienceRank(ctx context.Context, in *HotLiveAudienceRankRequest, opts ...client.CallOption) (*HotLiveAudienceRankResponse, error) }
func NewLiveRankSrvService ¶
func NewLiveRankSrvService(name string, c client.Client) LiveRankSrvService
type LiveRankValidationError ¶
type LiveRankValidationError struct {
// contains filtered or unexported fields
}
LiveRankValidationError is the validation error returned by LiveRank.Validate if the designated constraints aren't met.
func (LiveRankValidationError) Cause ¶
func (e LiveRankValidationError) Cause() error
Cause function returns cause value.
func (LiveRankValidationError) Error ¶
func (e LiveRankValidationError) Error() string
Error satisfies the builtin error interface
func (LiveRankValidationError) ErrorName ¶
func (e LiveRankValidationError) ErrorName() string
ErrorName returns error name.
func (LiveRankValidationError) Field ¶
func (e LiveRankValidationError) Field() string
Field function returns field value.
func (LiveRankValidationError) Key ¶
func (e LiveRankValidationError) Key() bool
Key function returns key value.
func (LiveRankValidationError) Reason ¶
func (e LiveRankValidationError) Reason() string
Reason function returns reason value.
type UserRankInfo ¶
type UserRankInfo struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // 用户id Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar"` // 用户头像 Score int64 `protobuf:"varint,3,opt,name=score,proto3" json:"score"` // 分数 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` // 昵称 IsFollowed bool `protobuf:"varint,5,opt,name=is_followed,json=isFollowed,proto3" json:"is_followed"` // 是否关注 LiveId uint64 `protobuf:"varint,6,opt,name=live_id,json=liveId,proto3" json:"live_id"` // 直播id Sort uint32 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort"` // 排序 // contains filtered or unexported fields }
func (*UserRankInfo) Descriptor
deprecated
func (*UserRankInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserRankInfo.ProtoReflect.Descriptor instead.
func (*UserRankInfo) GetAvatar ¶
func (x *UserRankInfo) GetAvatar() string
func (*UserRankInfo) GetIsFollowed ¶
func (x *UserRankInfo) GetIsFollowed() bool
func (*UserRankInfo) GetLiveId ¶
func (x *UserRankInfo) GetLiveId() uint64
func (*UserRankInfo) GetNickname ¶
func (x *UserRankInfo) GetNickname() string
func (*UserRankInfo) GetScore ¶
func (x *UserRankInfo) GetScore() int64
func (*UserRankInfo) GetSort ¶
func (x *UserRankInfo) GetSort() uint32
func (*UserRankInfo) GetUserId ¶
func (x *UserRankInfo) GetUserId() int64
func (*UserRankInfo) ProtoMessage ¶
func (*UserRankInfo) ProtoMessage()
func (*UserRankInfo) ProtoReflect ¶
func (x *UserRankInfo) ProtoReflect() protoreflect.Message
func (*UserRankInfo) Reset ¶
func (x *UserRankInfo) Reset()
func (*UserRankInfo) String ¶
func (x *UserRankInfo) String() string
func (*UserRankInfo) Validate ¶
func (m *UserRankInfo) Validate() error
Validate checks the field values on UserRankInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserRankInfo) ValidateAll ¶
func (m *UserRankInfo) ValidateAll() error
ValidateAll checks the field values on UserRankInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserRankInfoMultiError, or nil if none found.
type UserRankInfoMultiError ¶
type UserRankInfoMultiError []error
UserRankInfoMultiError is an error wrapping multiple validation errors returned by UserRankInfo.ValidateAll() if the designated constraints aren't met.
func (UserRankInfoMultiError) AllErrors ¶
func (m UserRankInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRankInfoMultiError) Error ¶
func (m UserRankInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRankInfoValidationError ¶
type UserRankInfoValidationError struct {
// contains filtered or unexported fields
}
UserRankInfoValidationError is the validation error returned by UserRankInfo.Validate if the designated constraints aren't met.
func (UserRankInfoValidationError) Cause ¶
func (e UserRankInfoValidationError) Cause() error
Cause function returns cause value.
func (UserRankInfoValidationError) Error ¶
func (e UserRankInfoValidationError) Error() string
Error satisfies the builtin error interface
func (UserRankInfoValidationError) ErrorName ¶
func (e UserRankInfoValidationError) ErrorName() string
ErrorName returns error name.
func (UserRankInfoValidationError) Field ¶
func (e UserRankInfoValidationError) Field() string
Field function returns field value.
func (UserRankInfoValidationError) Key ¶
func (e UserRankInfoValidationError) Key() bool
Key function returns key value.
func (UserRankInfoValidationError) Reason ¶
func (e UserRankInfoValidationError) Reason() string
Reason function returns reason value.