request

package
v0.0.0-...-1879a00 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BangumiDetailInfo

func BangumiDetailInfo(epId string) (body []byte, err error)

func BangumiInfo

func BangumiInfo(mediaId string) (body []byte, err error)

BangumiInfo 基本信息

func BangumiSeasonInfo

func BangumiSeasonInfo(seasonId string) (body []byte, err error)

BangumiSeasonInfo 根据season id获取数据 使用ssid获取的数据总是返回该番剧的最新一话的数据

func BangumiSectionInfo

func BangumiSectionInfo(seasonId string) (body []byte, err error)

func DanmakuHistory

func DanmakuHistory(sessData, oid, date string) (body []byte, err error)

func DanmakuOnline

func DanmakuOnline(oid, segmentIndex string) (body []byte, err error)

func DanmakuOnlineOld

func DanmakuOnlineOld(oid string) (body []byte, err error)

func NewRequest

func NewRequest(m Method, u api_url.ApiUrl, args ...interface{}) (body []byte, err error)

NewRequest 新建request

func UserGetUserInfo

func UserGetUserInfo(sessData string) (body []byte, err error)

func VideoInfo

func VideoInfo(bvOrAv string) (body []byte, err error)

func VideoRedirectEpisode

func VideoRedirectEpisode(videoId string) (epId string, err error)

VideoRedirectEpisode 番剧的每一话也像普通视频一样有自己的av、BV号,需要跳转处理

func XSpaceAccInfo

func XSpaceAccInfo(mid string) (body []byte, err error)

func XSpaceAccInfoSessData

func XSpaceAccInfoSessData(mid, sessData string) (body []byte, err error)

func XSpaceArcSearch

func XSpaceArcSearch(mid string, pn int) (body []byte, err error)

Types

type BanRedirect

type BanRedirect int

BanRedirect 禁止重定向

type Cookies

type Cookies params

type Method

type Method int64
const (
	GET Method = iota
)

func (Method) String

func (_this Method) String() string

type ParamsGet

type ParamsGet params

type RewriteURL

type RewriteURL string

RewriteURL 重写URL

func (RewriteURL) String

func (_this RewriteURL) String() string

type Timeout

type Timeout int64

Timeout 超时相关

func (Timeout) ToDuration

func (_this Timeout) ToDuration() time.Duration

Jump to

Keyboard shortcuts

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