request

package
v0.0.0-...-67030af Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Light = "light"
	Dark  = "dark"
)

Variables

This section is empty.

Functions

func BuildErrorBody

func BuildErrorBody(messages ...string) string

BuildErrorBody builds a JSON request response body using an error message

Types

type SearchParameters

type SearchParameters struct {
	Query       string
	Page        int
	PerPage     int
	Backgrounds []string
}

func ParseSearchParameters

func ParseSearchParameters(request events.APIGatewayProxyRequest) (SearchParameters, error)

ParseSearchParameters returns correctly formatted search parameters for a GET request query parameters

Jump to

Keyboard shortcuts

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