pitstop

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 1 Imported by: 0

README

pitstop

pitstop is the library that implements *fasthttp middleware chain using *alice's chain pattern

Alice

alice is a tiny and simple pattern for middleware chaining

https://github.com/justinas/alice

fasthttp

fasthttp is an extremely high performance http implementation

https://github.com/valyala/fasthttp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func NewChain

func NewChain(constructors ...Constructor) Chain

func (Chain) Append

func (c Chain) Append(constructors ...Constructor) Chain

func (Chain) Extend

func (c Chain) Extend(chain Chain) Chain

func (Chain) Then

func (Chain) ThenFunc

func (c Chain) ThenFunc(fn func(ctx *fasthttp.RequestCtx)) fasthttp.RequestHandler

Jump to

Keyboard shortcuts

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