live

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	Count int     `json:"count"`
	Lives []*Room `json:"lives"`
}

Feed is live feed

type Recommend

type Recommend struct {
	Count int `json:"count"`
	Lives struct {
		Subject []*Room `json:"subject"`
		Hot     []*Room `json:"hot"`
	} `json:"lives"`
}

Recommend is live recommend

type Room

type Room struct {
	Owner struct {
		Face string `json:"face"`
		Mid  int    `json:"mid"`
		Name string `json:"name"`
	} `json:"owner"`
	Cover struct {
		Src    string `json:"src"`
		Height int    `json:"height"`
		Width  int    `json:"width"`
	} `json:"cover"`
	Title  string `json:"title"`
	ID     int64  `json:"room_id"`
	Online int    `json:"online"`
	Area   string `json:"area"`
	AreaID int    `json:"area_id"`
}

type TopicHot

type TopicHot struct {
	TID      int    `json:"topic_id"`
	TName    string `json:"topic_name"`
	Picture  string `json:"picture"`
	ImageURL string `json:"-"`
}

func (*TopicHot) TopicJSONChange

func (t *TopicHot) TopicJSONChange() (err error)

type TopicImage

type TopicImage struct {
	ImageSrc    string `json:"image_src"`
	ImageWidth  int    `json:"image_width"`
	ImageHeight int    `json:"image_height"`
}

Jump to

Keyboard shortcuts

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