Documentation
¶
Index ¶
- type LibUnsplash
- func (instance *LibUnsplash) EnsureRandomFromKeywords(keywords []string, color string) (response map[string]interface{}, err error)
- func (instance *LibUnsplash) Map() (response map[string]interface{})
- func (instance *LibUnsplash) ProducerSettings() (response *llm_commons.LLMDriverOptions)
- func (instance *LibUnsplash) Random(query string) (response map[string]interface{}, err error)
- func (instance *LibUnsplash) RandomByColor(query, color string) (response map[string]interface{}, err error)
- func (instance *LibUnsplash) RandomByColorFromKeywords(keywords []string, color string) (response map[string]interface{}, err error)
- func (instance *LibUnsplash) RandomFromKeywords(keywords []string) (response map[string]interface{}, err error)
- func (instance *LibUnsplash) Search(query string) (response []map[string]interface{}, err error)
- func (instance *LibUnsplash) SearchBlackAndWhite(query string) (response []map[string]interface{}, err error)
- func (instance *LibUnsplash) SearchByColor(query, color string) (response []map[string]interface{}, err error)
- func (instance *LibUnsplash) SearchOne(query string) (response map[string]interface{}, err error)
- func (instance *LibUnsplash) SearchWith(params map[string]interface{}) (response []map[string]interface{}, err error)
- func (instance *LibUnsplash) String() string
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)
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
Click to show internal directories.
Click to hide internal directories.