liveRank

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_liveRank_liveRank_proto protoreflect.FileDescriptor

Functions

func NewLiveRankSrvEndpoints

func NewLiveRankSrvEndpoints() []*api.Endpoint

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

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

Cause function returns cause value.

func (HotLiveAnchorRankRequestValidationError) Error

Error satisfies the builtin error interface

func (HotLiveAnchorRankRequestValidationError) ErrorName

ErrorName returns error name.

func (HotLiveAnchorRankRequestValidationError) Field

Field function returns field value.

func (HotLiveAnchorRankRequestValidationError) Key

Key function returns key value.

func (HotLiveAnchorRankRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (HotLiveAnchorRankResponseMultiError) Error

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

Cause function returns cause value.

func (HotLiveAnchorRankResponseValidationError) Error

Error satisfies the builtin error interface

func (HotLiveAnchorRankResponseValidationError) ErrorName

ErrorName returns error name.

func (HotLiveAnchorRankResponseValidationError) Field

Field function returns field value.

func (HotLiveAnchorRankResponseValidationError) Key

Key function returns key value.

func (HotLiveAnchorRankResponseValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (HotLiveAudienceRankRequestMultiError) Error

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

Cause function returns cause value.

func (HotLiveAudienceRankRequestValidationError) Error

Error satisfies the builtin error interface

func (HotLiveAudienceRankRequestValidationError) ErrorName

ErrorName returns error name.

func (HotLiveAudienceRankRequestValidationError) Field

Field function returns field value.

func (HotLiveAudienceRankRequestValidationError) Key

Key function returns key value.

func (HotLiveAudienceRankRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (HotLiveAudienceRankResponseMultiError) Error

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

Cause function returns cause value.

func (HotLiveAudienceRankResponseValidationError) Error

Error satisfies the builtin error interface

func (HotLiveAudienceRankResponseValidationError) ErrorName

ErrorName returns error name.

func (HotLiveAudienceRankResponseValidationError) Field

Field function returns field value.

func (HotLiveAudienceRankResponseValidationError) Key

Key function returns key value.

func (HotLiveAudienceRankResponseValidationError) Reason

Reason function returns reason value.

type LiveRank

type LiveRank struct {
	// contains filtered or unexported fields
}

func (*LiveRank) Descriptor deprecated

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

Deprecated: Use LiveRank.ProtoReflect.Descriptor instead.

func (*LiveRank) ProtoMessage

func (*LiveRank) ProtoMessage()

func (*LiveRank) ProtoReflect

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

func (*LiveRank) Reset

func (x *LiveRank) Reset()

func (*LiveRank) String

func (x *LiveRank) String() string

func (*LiveRank) Validate

func (m *LiveRank) Validate() error

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

func (m *LiveRank) ValidateAll() error

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

Cause function returns cause value.

func (UserRankInfoValidationError) Error

Error satisfies the builtin error interface

func (UserRankInfoValidationError) ErrorName

func (e UserRankInfoValidationError) ErrorName() string

ErrorName returns error name.

func (UserRankInfoValidationError) Field

Field function returns field value.

func (UserRankInfoValidationError) Key

Key function returns key value.

func (UserRankInfoValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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