fiberzap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: GPL-3.0 Imports: 11 Imported by: 1

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)

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

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