lib_unsplash

package
v0.3.40 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibUnsplash

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

func NewLibUnsplash

func NewLibUnsplash(args ...interface{}) (instance *LibUnsplash, err error)

func (*LibUnsplash) EnsureRandomFromKeywords

func (instance *LibUnsplash) EnsureRandomFromKeywords(keywords []string, color string) (response map[string]interface{}, err error)

func (*LibUnsplash) Map

func (instance *LibUnsplash) Map() (response map[string]interface{})

func (*LibUnsplash) ProducerSettings

func (instance *LibUnsplash) ProducerSettings() (response *llm_commons.LLMDriverOptions)

func (*LibUnsplash) Random

func (instance *LibUnsplash) Random(query string) (response map[string]interface{}, err error)

Random https://unsplash.com/documentation#get-a-random-photo

func (*LibUnsplash) RandomByColor

func (instance *LibUnsplash) RandomByColor(query, color string) (response map[string]interface{}, err error)

func (*LibUnsplash) RandomByColorFromKeywords

func (instance *LibUnsplash) RandomByColorFromKeywords(keywords []string, color string) (response map[string]interface{}, err error)

func (*LibUnsplash) RandomFromKeywords

func (instance *LibUnsplash) RandomFromKeywords(keywords []string) (response map[string]interface{}, err error)

func (*LibUnsplash) Search

func (instance *LibUnsplash) Search(query string) (response []map[string]interface{}, err error)

Search https://unsplash.com/documentation#search-photos

func (*LibUnsplash) SearchBlackAndWhite

func (instance *LibUnsplash) SearchBlackAndWhite(query string) (response []map[string]interface{}, err error)

func (*LibUnsplash) SearchByColor

func (instance *LibUnsplash) SearchByColor(query, color string) (response []map[string]interface{}, err error)

SearchByColor Filter results by color. Valid values are: black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, and blue.

func (*LibUnsplash) SearchOne

func (instance *LibUnsplash) SearchOne(query string) (response map[string]interface{}, err error)

func (*LibUnsplash) SearchWith

func (instance *LibUnsplash) SearchWith(params map[string]interface{}) (response []map[string]interface{}, err error)

func (*LibUnsplash) String

func (instance *LibUnsplash) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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