background

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	ID    string `json:"id"`
	URL   string `json:"url"`
	Thumb string `json:"thumb,omitempty"`
	// This can be used to supply extra information from an image provider to clients
	Info interface{} `json:"info,omitempty"`
}

Image represents an image which can be used as a list background

type Provider

type Provider interface {
	// Search is used to either return a pre-defined list of Image or let the user search for an image
	Search(search string, page int64) (result []*Image, err error)
	// Set sets an image which was most likely previously obtained by Search as list background
	Set(image *Image, list *models.List, auth web.Auth) (err error)
}

Provider represents something that is able to get a list of images and set one of them as background

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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