Versions in this module Expand all Collapse all v0 v0.0.5 Jan 30, 2024 Changes in this version type Client + func (c *Client) OnRawPackage(f func(*[]byte)) v0.0.4 Jan 10, 2024 v0.0.3 Jan 10, 2024 v0.0.2 Jan 10, 2024 Changes in this version + func ParseCmd(d []byte) string + type Client struct + Buvid string + Config *Config + Cookie string + RoomID int + Uid int + func NewClient(roomID int, config *Config) *Client + func (c *Client) Handle(p packet.Packet) + func (c *Client) OnDanmaku(f func(*message.Danmaku)) + func (c *Client) OnGift(f func(gift *message.Gift)) + func (c *Client) OnGuardBuy(f func(*message.GuardBuy)) + func (c *Client) OnLive(f func(*message.Live)) + func (c *Client) OnPacket(f func(*packet.Packet)) + func (c *Client) OnSuperChat(f func(*message.SuperChat)) + func (c *Client) OnUserToast(f func(*message.UserToast)) + func (c *Client) RegisterCustomEventHandler(cmd string, handler func(s string)) + func (c *Client) SetCookie(cookie string) + func (c *Client) SetHost(host string) + func (c *Client) Start() error + func (c *Client) Stop() + func (c *Client) UseDefaultHost() + type Config struct + Logger logrus.FieldLogger + UserAgent string