kow

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

kow

a web framework with golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CONNECT added in v0.0.7

func Middleware

func Middleware(m ...context.MiddlewareInterface)

func OpenCors

func OpenCors(headers ...string)

func PATCH added in v0.0.7

func Run

func Run(name string, e serv.EventInterface)

func SetMaxRunTime

func SetMaxRunTime(max time.Duration)

Types

type Engine

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

func NewDefault

func NewDefault() *Engine

func NewEngine

func NewEngine() *Engine

func (*Engine) CONNECT added in v0.0.7

func (*Engine) DELETE

func (*Engine) DefRouter

func (e *Engine) DefRouter(method string, path string, ac context.ActionInterface) router.RouterInterface

func (*Engine) GET

func (*Engine) HEAD

func (*Engine) Middleware

func (e *Engine) Middleware(middlewars ...context.MiddlewareInterface)

func (*Engine) OPTIONS

func (*Engine) PATCH added in v0.0.7

func (*Engine) POST

func (*Engine) PUT

func (*Engine) Router

func (e *Engine) Router(ro router.RouterInterface)

func (*Engine) Run

func (e *Engine) Run(addr string) error

func (*Engine) ServeHTTP

func (e *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Engine) SetMaxRunTime

func (e *Engine) SetMaxRunTime(max time.Duration)

func (*Engine) Shutdown

func (e *Engine) Shutdown() error

func (*Engine) TRACE

Directories

Path Synopsis
encoding
xml

Jump to

Keyboard shortcuts

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