fiberzap

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Originally from https://gl.oddhunters.com/pub/fiberzap Copyright (apparently) by Ozgur Boru <boruozgur@yandex.com.tr> and "mert" (https://gl.oddhunters.com/mert) Updated for Fiber v3 by github.com/mrusme

Originally from https://gl.oddhunters.com/pub/fiberzap Copyright (apparently) by Ozgur Boru <boruozgur@yandex.com.tr> and "mert" (https://gl.oddhunters.com/mert) Updated for Fiber v3 by github.com/mrusme

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config ...Config) fiber.Handler

New creates a new middleware handler

func Req

func Req(c fiber.Ctx) *req

func Resp

func Resp(r *fasthttp.Response) *resp

Types

type Config

type Config struct {
	// Next defines a function to skip this middleware when returned true.
	//
	// Optional. Default: nil
	Next func(c fiber.Ctx) bool

	// Logger defines zap logger instance
	Logger *zap.Logger
}

Config defines the config for middleware

Jump to

Keyboard shortcuts

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