picture

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bing

type Bing struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Bing) Destroy

func (b *Bing) Destroy() error

func (*Bing) Get

func (b *Bing) Get(ctx context.Context, random bool) (*plugins.Picture, error)

func (*Bing) Initialize

func (b *Bing) Initialize(args map[string]any) error

func (*Bing) Name

func (b *Bing) Name() string

type Cartoon

type Cartoon struct{}

func (*Cartoon) Destroy

func (c *Cartoon) Destroy() error

func (*Cartoon) Get

func (c *Cartoon) Get(ctx context.Context, random bool) (*plugins.Picture, error)

func (*Cartoon) Initialize

func (c *Cartoon) Initialize(args map[string]any) error

func (*Cartoon) Name

func (c *Cartoon) Name() string

type Item

type Item struct {
	Startdate     string `json:"startdate"`
	Fullstartdate string `json:"fullstartdate"`
	Enddate       string `json:"enddate"`
	URL           string `json:"url"`
	Urlbase       string `json:"urlbase"`
	Copyright     string `json:"copyright"`
	Copyrightlink string `json:"copyrightlink"`
	Title         string `json:"title"`
	Quiz          string `json:"quiz"`
	Wp            bool   `json:"wp"`
	Hsh           string `json:"hsh"`
	Drk           int    `json:"drk"`
	Top           int    `json:"top"`
	Bot           int    `json:"bot"`
	Hs            []any  `json:"hs"`
}

type Res

type Res struct {
	Images []Item `json:"images"`
}

Jump to

Keyboard shortcuts

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