controllers

package
v0.0.0-...-3b2578a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	I18n   *i18n.I18n
	Locale string
)

Functions

func DetectLocale

func DetectLocale() gin.HandlerFunc

func StartToolkitServer

func StartToolkitServer(filePort, toolkitPort string)

func Translate

func Translate(key string) string

Types

type MainRouter

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

func (*MainRouter) CreateNodeHandler

func (router *MainRouter) CreateNodeHandler(c *gin.Context)

func (*MainRouter) GetInstallLog

func (router *MainRouter) GetInstallLog(c *gin.Context)

func (*MainRouter) IndexHandler

func (router *MainRouter) IndexHandler(c *gin.Context)

func (*MainRouter) Initialize

func (self *MainRouter) Initialize(r *gin.Engine, filePort, toolkitPort string)

func (*MainRouter) InstallNodeHandler

func (router *MainRouter) InstallNodeHandler(c *gin.Context)

func (*MainRouter) ListNodesHandler

func (router *MainRouter) ListNodesHandler(c *gin.Context)

func (*MainRouter) NodeProgressHandler

func (router *MainRouter) NodeProgressHandler(c *gin.Context)

func (*MainRouter) RefreshNodeHandler

func (router *MainRouter) RefreshNodeHandler(c *gin.Context)

func (*MainRouter) RemoveNodeHandler

func (router *MainRouter) RemoveNodeHandler(c *gin.Context)

func (*MainRouter) WSHandler

func (router *MainRouter) WSHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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