Documentation
¶
Overview ¶
Package gelbooru implements a simple library for accessing Gelbooru-based image boards.
Index ¶
- type Post
- 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 Post ¶
type Post struct { Directory string `json:"directory"` Hash string `json:"hash"` Height int `json:"height"` ID int `json:"id"` Image string `json:"image"` Change int `json:"change"` Owner string `json:"owner"` ParentID interface{} `json:"parent_id"` Rating string `json:"rating"` Sample bool `json:"sample"` SampleHeight int `json:"sample_height"` SampleWidth int `json:"sample_width"` Score int `json:"score"` Tags string `json:"tags"` Width int `json:"width"` FileURL string `json:"file_url"` }
Post contains native Gelbooru data
type Provider ¶
Provider implements gelbooru provider
func New ¶
func New(config getmoe.ProviderConfiguration) *Provider
New creates a new gelbooru 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 gelbooru provider with configuration
func (*Provider) PageRequest ¶
PageRequest builds page request from URL
Click to show internal directories.
Click to hide internal directories.