model

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageInfo added in v1.0.6

type PageInfo struct {
	Type      string `json:"type"`
	MediaInfo struct {
		StreamUrl   string `json:"stream_url"`
		StreamUrlHd string `json:"stream_url_hd"`
	} `json:"media_info"`
	Urls struct {
		Mp41080pMp4 string `json:"mp4_1080p_mp4"`
		Mp4720pMp4  string `json:"mp4_720p_mp4"`
		Mp4HdMp4    string `json:"mp4_hd_mp4"`
		Mp4LdMp4    string `json:"mp4_ld_mp4"`
	} `json:"urls"`
}

type Picture

type Picture struct {
	Large struct {
		Size string `json:"size"`
		URL  string `json:"url"`
	} `json:"large"`
}

type Status

type Status struct {
	StatusTitle string    `json:"status_title"`
	CreatedAt   string    `json:"created_at"`
	Text        string    `json:"text"`
	User        User      `json:"user"`
	Bid         string    `json:"bid"`
	Pics        []Picture `json:"pics"`
	PageInfo    PageInfo  `json:"page_info"`
}

type User

type User struct {
	ScreenName string `json:"screen_name"`
}

type Weibo added in v1.0.4

type Weibo struct {
	Status Status `json:"status"`
}

func (*Weibo) CreateTime added in v1.0.4

func (wb *Weibo) CreateTime() time.Time

func (*Weibo) CreateTimeString added in v1.0.4

func (wb *Weibo) CreateTimeString() string

func (*Weibo) From added in v1.0.4

func (wb *Weibo) From(jsons []byte) (err error)

func (*Weibo) HTML added in v1.0.4

func (wb *Weibo) HTML() (content string)
func (wb *Weibo) Link() string

Jump to

Keyboard shortcuts

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