fiberHelpers

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 2 Imported by: 0

README

fiberHelpers

Wrapper functions that make life easier for working with Fiber

Documentation

Index

Constants

View Source
const (
	ResourceNotFound    = "Resource not found"
	InternalServerError = "Internal server error"
)

Variables

This section is empty.

Functions

func RecordNotFound

func RecordNotFound(ctx *fiber.Ctx, err error) error

Types

type RouterConfig

type RouterConfig struct {
	DB     *sql.DB
	Router fiber.Router
}

func (*RouterConfig) DELETE

func (c *RouterConfig) DELETE(path string, handler fiber.Handler) fiber.Router

func (*RouterConfig) GET

func (c *RouterConfig) GET(path string, handler fiber.Handler) fiber.Router

func (*RouterConfig) POST

func (c *RouterConfig) POST(path string, handler fiber.Handler) fiber.Router

func (*RouterConfig) PUT

func (c *RouterConfig) PUT(path string, handler fiber.Handler) fiber.Router

Jump to

Keyboard shortcuts

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