fasthttp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package fasthttp is the router for github.com/fasthttp/router over github.com/valyala/fasthttp. The handlers stay http.HandlerFuncs, served through fasthttp's adaptor with the path parameters on the request, and the server is served in fasthttp's own way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct{}

Framework is the fasthttp router.

func (Framework) Conflicts

func (Framework) Conflicts(routes []framework.Route) ([]framework.Route, []framework.Conflict)

Conflicts drops every route the router panics on next to an earlier one of its method.

func (Framework) Handler

func (Framework) Handler(s *gocode.Scope) framework.Handler

func (Framework) Imports

func (Framework) Imports() []gomodel.Import

func (Framework) Name

func (Framework) Name() string

func (Framework) PathParam

func (Framework) PathParam(_ *gocode.Scope, name string) string

func (Framework) RoutePattern

func (Framework) RoutePattern(method, path string) (string, error)

RoutePattern keeps {name} parameters and quotes a literal after one, read as a regexp otherwise.

func (Framework) Templates

func (Framework) Templates() fs.FS

Jump to

Keyboard shortcuts

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