httpserver

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Log    log.LoggerInterface
	Router *way.Router
}

type HelperInterface

type HelperInterface interface {
	GetParam(ctx context.Context, param string) string
}

type Router

type Router struct {
	Server *way.Router
}

func NewAdapter

func NewAdapter(a *Adapter) *Router

type RouterHelper

type RouterHelper struct{}

func (RouterHelper) GetParam

func (r RouterHelper) GetParam(ctx context.Context, param string) string

type RouterInterface

type RouterInterface interface {
	Handle(method string, pattern string, handler http.Handler)
	HandleFunc(method string, pattern string, fn http.HandlerFunc)
	ServeHTTP(w http.ResponseWriter, req *http.Request)
}

Jump to

Keyboard shortcuts

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