Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

http

v1.0.3
github.com/nx-a/http

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

8 matches

Top ↑

Functions

AddRoute

func AddRoute(method, path, role string, route RouteFunc)

Listen

func Listen(cfg Gettable, access Accessibly) (chan bool, *fiber.App)

Types

Accessibly

type Accessibly interface {
	Middleware(access, url string) func(ctx *fiber.Ctx) error
}

Gettable

type Gettable interface {
	Get(name string) string
	GetDef(name, def string) string
}

Route

type Route struct {
	Role    string
	Path    string
	Method  string
	Handler RouteFunc
}

RouteFunc

type RouteFunc func(ctx *fiber.Ctx) error

Dependency graph