Versions in this module Expand all Collapse all v0 v0.1.6 Feb 24, 2023 v0.1.5 Oct 8, 2022 v0.1.4 Oct 8, 2022 v0.1.3 May 13, 2022 v0.1.2 Feb 17, 2022 Changes in this version + type Client interface + Enter func(room string) (tp int, data [][]byte, err error) + GetPlayURL func(room string, qn int) (*PlayURL, error) + GetRoomInfo func(room string) (*RoomInfo, error) + Handle func(tp int, data []byte) (msg []Msg, matched bool, err error) + HeartBeat func() (tp int, data []byte, err error) + Host func(room string) string + Plat func() string + SendDanmaku func(room string, content string, tp int, color int64) error + Stop func() + type Favorite struct + FID uint64 + ID uint64 + Order int + Plat string + Room string + Upper string + type FavoritesList struct + ID uint64 + Order int + Title string + type Msg interface + Event func() string + type MsgDanmaku struct + Color int64 + Content string + Type int + func (m *MsgDanmaku) Event() string + type MsgHot struct + Hot int64 + func (m *MsgHot) Event() string + type OSInfo struct + KernelArch string + KernelVersion string + OS string + Platform string + PlatformVersion string + Uptime uint64 + type PlayURL struct + CORS bool + Desc string + Origin string + Qn int + Type string + func (p *PlayURL) String() string + type RoomInfo struct + Link string + Room string + Status int + Title string + Upper string + func (r *RoomInfo) String() string + type SelfCPU struct + Percent float64 + type SelfMem struct + Mem uint64 + MemStr string + type SysCPU struct + Percent float64 + type SysMem struct + Avl uint64 + AvlStr string + Total uint64 + TotalStr string + type TimeHook struct + CreatedAt int64 + UpdatedAt int64 + type Transport struct + Error error + Msg Msg v0.1.0-release Jan 6, 2022