handler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(_ *gofr.Context) (interface{}, error)

func HelloName

func HelloName(ctx *gofr.Context) (interface{}, error)

func HelloWorld

func HelloWorld(_ *gofr.Context) (interface{}, error)

HelloWorld is a handler function of type gofr.Handler, it responds with a message

func MultipleErrorHandler

func MultipleErrorHandler(ctx *gofr.Context) (interface{}, error)

MultipleErrorHandler returns multiple errors and also sets the statusCode to 400 if id is 1 else to 500

func PostName

func PostName(ctx *gofr.Context) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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