common

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullGallery

func PullGallery(g Gallery) error

Types

type Client

type Client struct {
	Logger *log.Logger
	Client http.Client
}

func New

func New(logger *log.Logger, maxConnsPerHost int) Client

func (*Client) Catch

func (c *Client) Catch(err error)

func (*Client) LoadDoc

func (c *Client) LoadDoc(url string) *goquery.Document

func (*Client) PullImage

func (c *Client) PullImage(s string, filename string, folder string, completion chan bool, wg *sync.WaitGroup)
type Gallery interface {
	GetClient() Client
	Logger() *log.Logger
	Title() string
	ImageList() []Image
}

type GalleryBase

type GalleryBase struct {
	Client
}

func (*GalleryBase) GetClient

func (g *GalleryBase) GetClient() Client

func (*GalleryBase) Logger

func (g *GalleryBase) Logger() *log.Logger

type Image

type Image struct {
	Url      string
	Filename string
}

func NewImage

func NewImage(input string) Image

Jump to

Keyboard shortcuts

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