controllers

package
v0.0.0-...-5acdd1f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

type Hub struct {
	Controllers []interface{}
}

Hub ...

func New

func New(vb *rice.Box, sb *rice.Box, store *sessions.CookieStore, config *models.Config) *Hub

New ...

func (*Hub) BindRequestMapping

func (z *Hub) BindRequestMapping(router *bone.Mux)

BindRequestMapping ...

func (*Hub) LoadControllers

func (z *Hub) LoadControllers()

LoadControllers add the controllers in this method

func (*Hub) RequestMapping

func (z *Hub) RequestMapping(router *bone.Mux, requestMapping RequestMapping)

RequestMapping ...

type PageController

type PageController struct{}

PageController ...

func (*PageController) DashboardHandler

func (z *PageController) DashboardHandler(w http.ResponseWriter, r *http.Request)

DashboardHandler ...

func (*PageController) DocumentationHandler

func (z *PageController) DocumentationHandler(w http.ResponseWriter, r *http.Request)

DocumentationHandler ...

func (*PageController) RequestMapping

func (z *PageController) RequestMapping(router *bone.Mux)

RequestMapping ...

type RequestMapping

type RequestMapping interface {
	RequestMapping(router *bone.Mux)
}

RequestMapping ...

Jump to

Keyboard shortcuts

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