Documentation ¶
Overview ¶
Package types include common data structures used in multiple packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type DanmakuServerInfoResponse ¶
type DanmakuServerInfoResponse = BaseResponse[danmakuInfo]
type IpNetType ¶
type IpNetType string
func (IpNetType) GetDialNetString ¶
GetDialNetString returns the string accepted by net.Dialer::DialContext
type LiveList ¶
type LiveList struct { Code int `json:"code"` Message string `json:"message"` TTL int `json:"ttl"` Data struct { Count int `json:"count"` Data []struct { Face string `json:"face"` Link string `json:"link"` Roomid RoomId `json:"roomid"` Roomname string `json:"roomname"` Nickname string `json:"nickname"` } `json:"data"` } `json:"data"` }
type LiveStatus ¶
type LiveStatus int
const ( Inactive LiveStatus = 0 Streaming LiveStatus = 1 Playback LiveStatus = 2 )
func (LiveStatus) IsStreaming ¶
func (s LiveStatus) IsStreaming() bool
func (LiveStatus) String ¶
func (s LiveStatus) String() string
type RoomPlayInfoResponse ¶
type RoomPlayInfoResponse = BaseResponse[roomPlayInfo]
type RoomProfileResponse ¶
type RoomProfileResponse = BaseResponse[roomProfile]
type RoomUrlInfoResponse ¶
type RoomUrlInfoResponse = BaseResponse[roomUrlInfo]
type StreamingUrlInfo ¶
type WebBannerResponse ¶
type WebBannerResponse = BaseResponse[interface{}]
Click to show internal directories.
Click to hide internal directories.