inke

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInke

func NewInke() (model.Client, error)

Types

type Inke

type Inke struct {
	*abstract.Client
}

func (*Inke) Enter

func (i *Inke) Enter(room string) (int, [][]byte, error)

Enter 无需进入信息

func (*Inke) GetPlayURL

func (i *Inke) GetPlayURL(room string, qn int) (*model.PlayURL, error)

func (*Inke) GetRoomInfo

func (i *Inke) GetRoomInfo(room string) (*model.RoomInfo, error)

GetRoomInfo inke对于普通用户和未开播的主播返回的都是"当前用户无直播",所以只能都返回未知主播

func (*Inke) Handle

func (i *Inke) Handle(tp int, data []byte) ([]model.Msg, bool, error)

func (*Inke) HeartBeat

func (i *Inke) HeartBeat() (int, []byte, error)

HeartBeat 无需心跳

func (*Inke) Host

func (i *Inke) Host(room string) string

func (*Inke) Plat

func (i *Inke) Plat() string

Jump to

Keyboard shortcuts

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