handler

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

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

ErrorHandler always returns an error

func HelloLogHandler

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

func HelloName

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

HelloName is a handler function of type gofr.Handler, it responds with a message and uses query params

func HelloWorld

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

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

func JSONHandler

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

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

func Raw

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

func UserHandler

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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