abstract

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func (*Client) Enter

func (c *Client) Enter(room string) (tp int, data [][]byte, err error)

Enter return data of entering the live room

func (*Client) GetPlayURL

func (c *Client) GetPlayURL(room string, qn int) (*model.PlayURL, error)

GetPlayURL get live stream info

func (*Client) GetRoomInfo

func (c *Client) GetRoomInfo(room string) (*model.RoomInfo, error)

GetRoomInfo get live room info

func (*Client) Handle

func (c *Client) Handle(tp int, data []byte) (msg []model.Msg, matched bool, err error)

Handle return websocket parsing data

func (*Client) HeartBeat

func (c *Client) HeartBeat() (tp int, data []byte, err error)

HeartBeat return heartbeat msg data

func (*Client) Host

func (c *Client) Host(room string) string

Host return websocket host

func (*Client) Plat

func (c *Client) Plat() string

Plat return live platform id

func (*Client) SendDanmaku

func (c *Client) SendDanmaku(room string, content string, tp int, color int64) error

SendDanmaku send danmaku

func (*Client) Stop

func (c *Client) Stop()

Stop stop and release resource

Jump to

Keyboard shortcuts

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