router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRoutes

func InitRoutes(router *Router)

InitRoutes creates our routes

func StaticServer

func StaticServer(path string) func(w http.ResponseWriter, r *http.Request)

StaticServer is a http handler used to serve all static endpoints such as docs and dashboard

Types

type Router

type Router struct {
	Router *mux.Router // point to mux routers

}

Router is a wrapper for all the router connections

func NewRouter

func NewRouter() *Router

NewRouter get new Instance

Jump to

Keyboard shortcuts

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