handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMalformedRequest = errors.New("malformed request")
)

Functions

func DeleteAlbum

func DeleteAlbum(env *Env, c *Context) error

func GetAlbum

func GetAlbum(env *Env, c *Context) error

func GetAlbums

func GetAlbums(env *Env, c *Context) error

func PatchAlbum

func PatchAlbum(env *Env, c *Context) error

func Ping

func Ping(env *Env, c *Context) error

func PostAlbum

func PostAlbum(env *Env, c *Context) error

Types

type Context

type Context struct {
	echo.Context
}

func (*Context) BadRequest

func (c *Context) BadRequest(err error) error

func (*Context) Error

func (c *Context) Error(err error) error

func (*Context) InternalServerError

func (c *Context) InternalServerError(err error) error

func (*Context) NoContent

func (c *Context) NoContent() error

func (*Context) NotFound

func (c *Context) NotFound(err error) error

func (*Context) OK

func (c *Context) OK(v any) error

type Env

type Env struct {
	AlbumService *service.AlbumService
}

type HandlerFunc

type HandlerFunc func(env *Env, c *Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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