v2

package
v0.0.0-...-8de1c96 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequestForbidden = errors.New("request forbidden by upstream server")
	ErrRequestFailed    = errors.New("request failed")
)

Functions

This section is empty.

Types

type API

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

func NewV2Api

func NewV2Api(e *env.Env, redirectImageCdnBasePath string) *API

func (*API) Comments

func (a *API) Comments(c api.CommentQuery) (*api.Comments, error)

func (*API) Get

func (a *API) Get(id string) (*api.Recipe, error)

func (*API) Inspirations

func (a *API) Inspirations() (*api.RecipeInspirationsMixed, error)

func (*API) Search

func (a *API) Search(s api.Search) (*api.RecipeSearch, error)

Jump to

Keyboard shortcuts

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