Documentation
¶
Index ¶
- Constants
- func New() util.Framework
- type Route
- func (route *Route) Call(name string, args ...ast.Expr) instance
- func (route *Route) HandlerFunc(args ...ast.Expr) *Route
- func (route *Route) Methods(args ...ast.Expr) *Route
- func (route *Route) Path(args ...ast.Expr) *Route
- func (route *Route) PathPrefix(args ...ast.Expr) *Route
- func (route *Route) Subrouter(args ...ast.Expr) *Router
- func (route *Route) ToEndpoints() []util.Endpoint
- type Router
- func (router *Router) Call(name string, args ...ast.Expr) instance
- func (router *Router) HandleFunc(args ...ast.Expr) *Route
- func (router *Router) Methods(args ...ast.Expr) *Route
- func (router *Router) NewRoute(args ...ast.Expr) *Route
- func (router *Router) Path(args ...ast.Expr) *Route
- func (router *Router) PathPrefix(args ...ast.Expr) *Route
Constants ¶
const ( MUX instanceType = iota ROUTER ROUTE )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) HandlerFunc ¶
HandlerFunc emulate behavior of mux.Route.HandlerFunc Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.HandlerFunc
func (*Route) Methods ¶
Methods emulate behavior of mux.Route.Methods Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.Methods
func (*Route) Path ¶
PathPrefix emulate behavior of mux.Route.Path Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.Path
func (*Route) PathPrefix ¶
PathPrefix emulate behavior of mux.Route.PathPrefix Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.PathPrefix
func (*Route) Subrouter ¶
Subrouter emulate behavior of mux.Route.Subrouter Ref. https://pkg.go.dev/github.com/gorilla/mux#Route.Subrouter
func (*Route) ToEndpoints ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) HandleFunc ¶
HandleFunc emulate behavior of mux.Router.HandleFunc Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.HandleFunc
func (*Router) Methods ¶
Methods emulate behavior of mux.Router.Methods Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.Methods
func (*Router) NewRoute ¶
Subrouter emulate behavior of mux.Router.NewRoute Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.NewRoute
func (*Router) Path ¶
Path emulate behavior of mux.Router.PathPrefix Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.Path
func (*Router) PathPrefix ¶
PathPrefix emulate behavior of mux.Router.PathPrefix Ref. https://pkg.go.dev/github.com/gorilla/mux#Router.PathPrefix