p115

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayQrcode

func DisplayQrcode(img []byte) error

func DisposeQrcode

func DisposeQrcode()

func LoadCookies

func LoadCookies() string

func SaveCookies

func SaveCookies(agent *elevengo.Agent)

func SetOption added in v0.1.3

func SetOption(opt Option)

Types

type Agent

type Agent struct {
	Agent         *elevengo.Agent
	StoreInstance *store.Store
}

func New

func New() (*Agent, error)

func NewAgent

func NewAgent(cookies string) (*Agent, error)

func NewAgentByConfig

func NewAgentByConfig() (*Agent, error)

func NewAgentByQrcode

func NewAgentByQrcode() (*Agent, error)

func QrcodeLogin

func QrcodeLogin() (*Agent, error)

func (*Agent) AddMagnetTask

func (ag *Agent) AddMagnetTask(magnets []string, cid string)

func (*Agent) AddRssUrlTask

func (ag *Agent) AddRssUrlTask(url string)

func (*Agent) ExecuteAllRssTask

func (ag *Agent) ExecuteAllRssTask()

func (*Agent) OfflineClear added in v0.1.4

func (ag *Agent) OfflineClear(num int) (err error)

type Option added in v0.1.3

type Option struct {
	DisableCache bool
}

Jump to

Keyboard shortcuts

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