frontend

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const STATIC_APP_DIR_ENV = "STATIC_APP"
View Source
const STATIC_BASE_HREF = "/public"
View Source
const STATIC_RELATIVE_PATH = "/"

Variables

This section is empty.

Functions

func AddFrontend

func AddFrontend(engine *gin.Engine, defaultTemplateDir string)

func SetApplication

func SetApplication(engine *gin.Engine, templateDir string)

func SetStaticApp

func SetStaticApp(engine *gin.Engine)

Types

type IndexTemplateData

type IndexTemplateData struct {
	Identifier   string
	Uri          string
	PathToStatic string
	Port         string
	EndPoint     string
}

type WebApplication

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

func (*WebApplication) InitLogBookClientApplication

func (a *WebApplication) InitLogBookClientApplication(c *gin.Context)

func (*WebApplication) SetTemplateDirPath

func (a *WebApplication) SetTemplateDirPath(path string)

Jump to

Keyboard shortcuts

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