do

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMemberCount

type AppMemberCount struct {
	ID       string `bson:"_id"`
	ServerID string `bson:"serverId"` // websocket网关节点id
	AppID    string `bson:"appId"`
	Count    int64  `bson:"count"`
}

type LiveOnlineUser

type LiveOnlineUser struct {
	ID            int64  `gorm:"AUTO_INCREMENT;primary_key"`
	ServerID      string `gorm:"column:serverId;size:128;not null"` // websocket网关节点id
	LiveID        string `gorm:"column:liveId;size:64;not null"`
	UserID        string `gorm:"column:userId;size:128"`
	EntryLiveTime int64  `gorm:"column:entryLiveTime"`
	OnlineUser    string `gorm:"column:onlineUser;type:text"`
}

func (LiveOnlineUser) TableName

func (LiveOnlineUser) TableName() string

type OnlineCountStatistic

type OnlineCountStatistic struct {
	ID                  string `bson:"_id"`
	ServerID            string `bson:"serverId"` // websocket网关节点id
	LiveID              string `bson:"liveId"`
	TotalCount          int64  `bson:"totalCount"`
	GuardCount          int64  `bson:"guardCount"`
	MonthGuardCount     int64  `bson:"monthGuardCount"`
	YearGuardCount      int64  `bson:"yearGuardCount"`
	NobilityCount       int64  `bson:"nobilityCount"`
	RoomManagerCount    int64  `bson:"roomManagerCount"`
	NobilityLevel1Count int64  `bson:"nobilityLevel1Count"`
	NobilityLevel2Count int64  `bson:"nobilityLevel2Count"`
	NobilityLevel3Count int64  `bson:"nobilityLevel3Count"`
	NobilityLevel4Count int64  `bson:"nobilityLevel4Count"`
	NobilityLevel5Count int64  `bson:"nobilityLevel5Count"`
	NobilityLevel6Count int64  `bson:"nobilityLevel6Count"`
	NobilityLevel7Count int64  `bson:"nobilityLevel7Count"`
}

type OnlineLiveManager

type OnlineLiveManager struct {
	ID        string   `bson:"_id"`
	ServerID  string   `bson:"serverId"` // websocket网关节点id
	LiveID    string   `bson:"liveId"`
	UserIDSet []string `bson:"userIdSet"`
}

type OnlineUser

type OnlineUser struct {
	SdkVersion         string `bson:"sdkVersion" json:"sdkVersion"`
	AppID              string `bson:"appId" json:"appId"`
	LiveAppID          string `bson:"liveAppId" json:"liveAppId"`
	SessionID          string `bson:"sessionId" json:"sessionId"`
	IsReconnect        string `bson:"isReconnect" json:"isReconnect"`
	UserID             string `bson:"userId" json:"userId"`
	OpenID             string `bson:"openId" json:"openId"`
	Avatar             string `bson:"avatar" json:"avatar"`
	UserName           string `bson:"userName" json:"userName"`
	Sex                string `bson:"sex" json:"sex"`
	Role               string `bson:"role" json:"role"`         // 字段是判断用户角色的,包括主播、用户、房管、超管,主要是用来对用户进行相关操作
	UserRole           string `bson:"userRole" json:"userRole"` // 判断当前用户是主播还是用户,主要是用来区分用户名片的,是显示主播名片还是用户名片
	ExpGrade           int    `bson:"expGrade" json:"expGrade"`
	GuardType          string `bson:"guardType" json:"guardType"`
	CarID              string `bson:"carId" json:"carId"`
	CarName            string `bson:"carName" json:"carName"`
	CarIcon            string `bson:"carIcon" json:"carIcon"`
	CarOnlineURL       string `bson:"carOnlineUrl" json:"carOnlineUrl"`
	CarResURL          string `bson:"carResUrl" json:"carResUrl"`
	IsPlayCarAnim      string `bson:"isPlayCarAnim" json:"isPlayCarAnim"`
	MarkUrlsJoinString string `bson:"markUrlsJoinString" json:"markUrlsJoinString"`
	NobilityType       string `bson:"nobilityType" json:"nobilityType"`
	IsEnterHide        int    `bson:"isEnterHide" json:"isEnterHide"`
	TokenType          string `bson:"tokenType" json:"tokenType"`
}

func (*OnlineUser) IsGuard

func (o *OnlineUser) IsGuard() bool

func (*OnlineUser) IsNobility

func (o *OnlineUser) IsNobility() bool

type OnlineVIP

type OnlineVIP struct {
	ID       string       `bson:"_id"`
	ServerID string       `bson:"serverId"` // websocket网关节点id
	LiveID   string       `bson:"liveId"`
	Count    int          `bson:"count"`
	Rank     []OnlineUser `bson:"rank"`
}

type SocketConnectCountInfo

type SocketConnectCountInfo struct {
	ID       string       `bson:"_id"`
	ServerID string       `bson:"serverId"` // websocket网关节点id
	AppID    string       `bson:"appId"`
	LiveID   string       `bson:"liveId"`
	Count    int          `bson:"count"`
	Rank     []OnlineUser `bson:"rank"`
}

Jump to

Keyboard shortcuts

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