pixiv

package
v0.0.0-...-ce76094 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(id uint64, dir string) ([]int64, []error)

func ParseURL

func ParseURL(s string) uint64

func URLWithID

func URLWithID(id uint64) string

Types

type Bot

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

func NewBot

func NewBot(cfg *Config) *Bot

func (*Bot) StartFollow

func (b *Bot) StartFollow(ttl int, output chan uint64)

func (*Bot) WithLogger

func (b *Bot) WithLogger(logger *logging.Logger) *Bot

func (*Bot) WithRedis

func (b *Bot) WithRedis(rds *redis.Client) *Bot

type Config

type Config struct {
	Username string `json:"username"`
	Password string `json:"password"`
	ImgPath  string `json:"imgPath"`
}

Jump to

Keyboard shortcuts

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