controller

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRestRoutes

func LoadRestRoutes(r *mux.Router, dic *di.Container)

Types

type ConfigRespMap

type ConfigRespMap struct {
	Configuration map[string]interface{}
}

type RestController

type RestController struct {
	// contains filtered or unexported fields
}

func NewRestController

func NewRestController(r *mux.Router) RestController

func (RestController) AddRoute

func (c RestController) AddRoute(route string, handler func(http.ResponseWriter, *http.Request), methods ...string) error

func (RestController) InitRestRoutes

func (c RestController) InitRestRoutes()

func (RestController) Router

func (c RestController) Router() *mux.Router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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