Documentation
¶
Index ¶
- type Router
- func (r *Router) Delete(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
- func (r *Router) Get(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
- func (r *Router) GetName() string
- func (r *Router) Patch(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
- func (r *Router) Post(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
- func (r *Router) Put(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
- func (r *Router) Start() error
- func (r *Router) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is a wrapper around muxinator.Router that conforms to the bootstrap.Process interface
func (*Router) Delete ¶
func (r *Router) Delete(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
Delete is a helper function to add a DELETE route
func (*Router) Get ¶
func (r *Router) Get(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
Get is a helper function to add a GET route
func (*Router) Patch ¶
func (r *Router) Patch(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
Patch is a helper function to add a PATCH route
func (*Router) Post ¶
func (r *Router) Post(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
Post is a helper function to add a POST route
func (*Router) Put ¶
func (r *Router) Put(path string, handler http.HandlerFunc, middlewares ...muxinator.Middleware)
Put is a helper function to add a PUT route
Click to show internal directories.
Click to hide internal directories.