panhome

package
v0.0.0-...-3404eb1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperationSignature signature
	OperationSignature = "signature"
)

Variables

View Source
var (
	ErrCookieInvalid   = errors.New("cookie is invalid")
	ErrUnknownLocation = errors.New("unknown location")
	ErrMatchPanHome    = errors.New("网盘首页数据匹配出错")
)
View Source
var (

	// PanHomeUserAgent PanHome User-Agent
	PanHomeUserAgent = "Mozilla/5.0"
)

Functions

This section is empty.

Types

type PanHome

type PanHome struct {
	// contains filtered or unexported fields
}

func NewPanHome

func NewPanHome(client *requester.HTTPClient) *PanHome

func (*PanHome) CacheSignature

func (ph *PanHome) CacheSignature() (sign SignRes, err error)

CacheSignature 在有效期内返回缓存结果

func (*PanHome) SetSignExpires

func (ph *PanHome) SetSignExpires()

SetSignExpires 设置sign过期

func (*PanHome) Signature

func (ph *PanHome) Signature() (sign SignRes, err error)

type SignRes

type SignRes interface {
	Sign() string
	Timestamp() string
}

SignRes 签名结果

Jump to

Keyboard shortcuts

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