Documentation ¶
Index ¶
- Constants
- func InitDB(file string) error
- func QueryHightlight(roomId int, liveId int64) ([]bs.TimelineEntry, error)
- func QueryLiveInfo(roomId int, until int64, limit int) ([]*bs.BasicLiveInfo, error)
- func SaveHightlight(req *bs.CommitHighlightRequest) error
- func SaveLiveInfo(roomId int, info *bs.BasicLiveInfo) error
- func SaveRecentLiveRoom(uid int64, roomId int, name, icon string) error
- type LiveRoomInfo
Constants ¶
View Source
const (
MAX_RECENT_LIVE_ROOM = 8
)
Variables ¶
This section is empty.
Functions ¶
func QueryHightlight ¶
func QueryHightlight(roomId int, liveId int64) ([]bs.TimelineEntry, error)
func QueryLiveInfo ¶
func SaveHightlight ¶
func SaveHightlight(req *bs.CommitHighlightRequest) error
func SaveLiveInfo ¶
func SaveLiveInfo(roomId int, info *bs.BasicLiveInfo) error
Types ¶
type LiveRoomInfo ¶
type LiveRoomInfo struct { UID int64 `json:"uid"` RoomID int `json:"room_id"` StreamerName string `json:"name"` StreamerIcon string `json:"icon"` LastAccessTime int64 `json:"lat"` }
func GetRecentRooms ¶
func GetRecentRooms() ([]*LiveRoomInfo, error)
Click to show internal directories.
Click to hide internal directories.