lucid

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func New

func New(ctx context.Context) Context

func (*Context) Bind

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

func (Context) Deadline

func (c Context) Deadline() (deadline time.Time, ok bool)

func (Context) Done

func (c Context) Done() <-chan struct{}

func (Context) Engine

func (c Context) Engine() engines.EngineContract

func (Context) Err

func (c Context) Err() error

func (Context) Next

func (c Context) Next() Middleware

func (Context) Resolve

func (c Context) Resolve(key interface{}) interface{}

this should be similar to Value()

func (Context) Router

func (c Context) Router() RouterContract

func (Context) Session

func (c Context) Session() session.SessionContract

func (Context) Stop

func (c Context) Stop() Middleware

func (Context) Value

func (c Context) Value(key interface{}) interface{}

type EngineCtx

type EngineCtx struct{}

type Middleware

type Middleware struct {
	Continue bool
}

type Response

type Response struct {
	Type  string
	Value interface{}
}

type ResponseError

type ResponseError struct {
	Message interface{}
	Error   error
	Code    interface{}
}

type ResponseValidationError

type ResponseValidationError struct {
	ValidationError interface{}
}

type RouterContract

type RouterContract interface {
	Match(req *http.Request, match *mux.RouteMatch) bool
	ServeHTTP(w http.ResponseWriter, req *http.Request)
	Get(name string) *mux.Route
	GetRoute(name string) *mux.Route
	NewRoute() *mux.Route
	Name(name string) *mux.Route
	Handle(path string, handler http.Handler) *mux.Route
	HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route
	Headers(pairs ...string) *mux.Route
	Host(tpl string) *mux.Route
	MatcherFunc(f mux.MatcherFunc) *mux.Route
	Methods(methods ...string) *mux.Route
	Path(tpl string) *mux.Route
	PathPrefix(tpl string) *mux.Route
	Queries(pairs ...string) *mux.Route
	Schemes(schemes ...string) *mux.Route
	BuildVarsFunc(f mux.BuildVarsFunc) *mux.Route
	Walk(walkFn mux.WalkFunc) error
}

type RouterCtx

type RouterCtx struct{}

Jump to

Keyboard shortcuts

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