api

package
v0.0.0-...-45ef093 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p *Params) *implManager

Types

type Manager

type Manager interface {
	http.Handler
	Logger() *logger.Logger
	Router() Router
}

type Params

type Params struct {
	Logger           *logger.Logger
	NotFound         func() core.Handler
	MethodNotAllowed func(allowedMethods []string) core.Handler
}

type Router

type Router interface {
	Use(middlewares ...core.MiddlewareFunc)
	Mount(pattern string, fn func(router Router))
	Delete(pattern string, fn core.HandlerFunc)
	Get(pattern string, fn core.HandlerFunc)
	Options(pattern string, fn core.HandlerFunc)
	Patch(pattern string, fn core.HandlerFunc)
	Post(pattern string, fn core.HandlerFunc)
	Put(pattern string, fn core.HandlerFunc)
	Static(fs http.FileSystem)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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