router

package
v0.0.0-...-c7f552b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoutes

func GetRoutes() routes.Routes

GetRoutes - Handle Authentication

func Middleware

func Middleware(next http.Handler) http.Handler

Middleware - Main Middleware function

Types

type Router

type Router struct {
	Router *mux.Router
}

Router - Mux router struct

func NewRouter

func NewRouter() (r Router)

NewRouter - return the router

func (*Router) AttachSubRouterWithMiddleware

func (r *Router) AttachSubRouterWithMiddleware(path string, subroutes routes.Routes, middleware mux.MiddlewareFunc) (SubRouter *mux.Router)

AttachSubRouterWithMiddleware - yes

func (*Router) Init

func (r *Router) Init()

Init - Initialize the router and get the route and subroutes

Jump to

Keyboard shortcuts

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