router

package
v0.0.0-...-17f76c2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRPC2Routes

func GenerateRPC2Routes(routes []JSON2) *mux.Router

GenerateRPC2Routes ...

func GenerateRoutes

func GenerateRoutes(routes []Route) *mux.Router

GenerateRoutes - Return a new Gorilla Mux Wrapper

Types

type JSON2

type JSON2 struct {
	Endpoint  string
	Namespace string
	Handler   interface{}
}

JSON2 -

type Route

type Route struct {
	PathPrefix  string
	Name        string
	Method      string
	Path        string
	HandlerFunc http.HandlerFunc
	Queries     []string
}

Route - gorilla mux route wrapper

Jump to

Keyboard shortcuts

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