gorilla

package
v0.0.0-...-1ec7487 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MUX instanceType = iota
	ROUTER
	ROUTE
)

Variables

This section is empty.

Functions

func New

func New() util.Framework

Types

type Route

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

func (*Route) Call

func (route *Route) Call(name string, args ...ast.Expr) instance

func (*Route) HandlerFunc

func (route *Route) HandlerFunc(args ...ast.Expr) *Route

HandlerFunc emulate behavior of mux.Route.HandlerFunc Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.HandlerFunc

func (*Route) Methods

func (route *Route) Methods(args ...ast.Expr) *Route

Methods emulate behavior of mux.Route.Methods Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.Methods

func (*Route) Path

func (route *Route) Path(args ...ast.Expr) *Route

PathPrefix emulate behavior of mux.Route.Path Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.Path

func (*Route) PathPrefix

func (route *Route) PathPrefix(args ...ast.Expr) *Route

PathPrefix emulate behavior of mux.Route.PathPrefix Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.PathPrefix

func (*Route) Subrouter

func (route *Route) Subrouter(args ...ast.Expr) *Router

Subrouter emulate behavior of mux.Route.Subrouter Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.Subrouter

func (*Route) ToEndpoints

func (route *Route) ToEndpoints() []util.Endpoint

type Router

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

func (*Router) Call

func (router *Router) Call(name string, args ...ast.Expr) instance

func (*Router) HandleFunc

func (router *Router) HandleFunc(args ...ast.Expr) *Route

HandleFunc emulate behavior of mux.Router.HandleFunc Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.HandleFunc

func (*Router) Methods

func (router *Router) Methods(args ...ast.Expr) *Route

Methods emulate behavior of mux.Router.Methods Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.Methods

func (*Router) NewRoute

func (router *Router) NewRoute(args ...ast.Expr) *Route

Subrouter emulate behavior of mux.Router.NewRoute Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.NewRoute

func (*Router) Path

func (router *Router) Path(args ...ast.Expr) *Route

Path emulate behavior of mux.Router.PathPrefix Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.Path

func (*Router) PathPrefix

func (router *Router) PathPrefix(args ...ast.Expr) *Route

PathPrefix emulate behavior of mux.Router.PathPrefix Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.PathPrefix

Jump to

Keyboard shortcuts

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