Documentation
¶
Overview ¶
Package sankaku implements a simple library for accessing Sankakucomplex-based image boards.
Index ¶
- type Provider
- func (p *Provider) Auth(config getmoe.AuthConfiguration)
- func (p *Provider) BuildRequest(config getmoe.RequestConfiguration)
- func (p *Provider) New(config getmoe.ProviderConfiguration)
- func (p *Provider) NextPage()
- func (p *Provider) PageRequest() (*http.Request, error)
- func (p *Provider) Parse(data []byte) ([]getmoe.Post, error)
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 ¶
func New(config getmoe.ProviderConfiguration) *Provider
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) PageRequest ¶
PageRequest builds page request from URL.
Click to show internal directories.
Click to hide internal directories.