essentia

package module
v0.0.0-...-d0ddd96 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 11 Imported by: 0

README

essentia

GitHub Workflow codecov GitHub last commit

TODO: Add description

How to run use?

TODO

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

For more information please read the CONTRIBUTING document.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Request    *http.Request
	Writer     *ResponseWriter
	Middleware *Middleware
	Params     httprouter.Params
	Data       map[string]interface{}
}

func (*Context) Get

func (c *Context) Get(key string) interface{}

func (*Context) Next

func (c *Context) Next()

func (*Context) Set

func (c *Context) Set(key string, value interface{})

type Essentia

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

func Default

func Default() *Essentia

func Minimal

func Minimal() *Essentia

func New

func New() *Essentia

func (*Essentia) Handle

func (essentia *Essentia) Handle(method string, path string)

func (*Essentia) Use

func (essentia *Essentia) Use(middleware ...HandlerFunc)

type HandlerFunc

type HandlerFunc func(*Context)

func Cors

func Cors() HandlerFunc

func Helmet

func Helmet() HandlerFunc

func Logger

func Logger() HandlerFunc

func RateLimit

func RateLimit() HandlerFunc

func Recover

func Recover() HandlerFunc

type Middleware

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

type ResponseWriter

type ResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) *ResponseWriter

func (*ResponseWriter) Hijack

func (w *ResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)

func (*ResponseWriter) WriteHeader

func (w *ResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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