twitter

package
v0.0.0-...-0e7a981 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Photo = 0
	Video = 1
)

Variables

This section is empty.

Functions

func GetTwitter

func GetTwitter(tid string) gjson.Result

func Init

func Init()

func ParseMsg

func ParseMsg(res gjson.Result) string

Types

type Media

type Media struct {
	Type     MediaType
	Url      string
	Thumb    string
	Variants Variants
}

func ParseMedias

func ParseMedias(res gjson.Result) []Media

type MediaType

type MediaType int

type Variant

type Variant struct {
	Bitrate int64
	Url     string
}

type Variants

type Variants []Variant

func (Variants) Len

func (v Variants) Len() int

func (Variants) Less

func (v Variants) Less(i, j int) bool

func (Variants) Swap

func (v Variants) Swap(i, j int)

Jump to

Keyboard shortcuts

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