weibo

package
v0.0.0-...-084929d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "weibo"

Variables

This section is empty.

Functions

func New

Types

type WeiBo

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

func (*WeiBo) CheckUrl

func (b *WeiBo) CheckUrl(ctx context.Context, metaurl string) bool

检查链接是否有效

func (*WeiBo) Download

func (b *WeiBo) Download(ctx context.Context, metaurl string) ([]byte, error)

func (*WeiBo) DownloadUsable

func (*WeiBo) DownloadUsable() bool

func (*WeiBo) IsLogin

func (b *WeiBo) IsLogin() bool

是否登陆

func (*WeiBo) MaxSize

func (*WeiBo) MaxSize() int

func (*WeiBo) Name

func (*WeiBo) Name() string

func (*WeiBo) QrcodeLogin

func (b *WeiBo) QrcodeLogin(ctx context.Context, show func(ctx context.Context, image image.Image) error) (cookie string, err error)

func (*WeiBo) SetAuthorization

func (b *WeiBo) SetAuthorization(auto string) error

func (*WeiBo) SetOption

func (b *WeiBo) SetOption(options ...drivercommon.Option) error

func (*WeiBo) SpaceSize

func (*WeiBo) SpaceSize() drivercommon.SpaceSize

func (*WeiBo) SuperEncoder

func (*WeiBo) SuperEncoder() []string

func (*WeiBo) Upload

func (b *WeiBo) Upload(ctx context.Context, block []byte) (metaurl string, err error)

func (*WeiBo) UploadUsable

func (b *WeiBo) UploadUsable() bool

Jump to

Keyboard shortcuts

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