sankaku

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package sankaku implements a simple library for accessing Sankakucomplex-based image boards.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	URL          *url.URL
	Headers      map[string]string
	PasswordSalt string
	AppkeySalt   string
	PostsLimit   int
	// contains filtered or unexported fields
}

Provider implements sankaku provider.

func New

New creates a new sankaku provider with configuration.

func (*Provider) Auth

func (p *Provider) Auth(config getmoe.AuthConfiguration)

Auth builds query based on AuthConfiguration.

func (*Provider) BuildRequest

func (p *Provider) BuildRequest(config getmoe.RequestConfiguration)

BuildRequest builds query based on RequestConfiguration.

func (*Provider) New added in v0.5.0

func (p *Provider) New(config getmoe.ProviderConfiguration)

New creates a new sankaku provider with configuration.

func (*Provider) NextPage

func (p *Provider) NextPage()

NextPage increments page by 1.

func (*Provider) PageRequest

func (p *Provider) PageRequest() (*http.Request, error)

PageRequest builds page request from URL.

func (*Provider) Parse

func (p *Provider) Parse(data []byte) ([]getmoe.Post, error)

Parse parses result from query.

Jump to

Keyboard shortcuts

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