danbooru

package
v0.0.0-...-d08261a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BooruClient

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

func GetClient

func GetClient() (*BooruClient, error)

func (*BooruClient) GetBooba

func (c *BooruClient) GetBooba() ([]int, error)

func (*BooruClient) GetPost

func (c *BooruClient) GetPost(id int) (*BooruPost, error)

type BooruPost

type BooruPost struct {
	ID        int    `json:"id"`
	FileExt   string `json:"file_ext"`
	Character string `json:"tag_string_character"`
	Artist    string `json:"tag_string_artist"`
	Copyright string `json:"tag_string_copyright"`
	FileUrl   string `json:"large_file_url"`
}

func (*BooruPost) BadExt

func (p *BooruPost) BadExt() bool

func (*BooruPost) GetMarkdown

func (p *BooruPost) GetMarkdown() string

type Query

type Query struct {
	Page   int    `url:"page,omitempty"`
	Limit  int    `url:"limit,omitempty"`
	Tags   string `url:"tags,omitempty"`
	Login  string `url:"login,omitempty"`
	ApiKey string `url:"api_key,omitempty"`
}

Jump to

Keyboard shortcuts

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