www

package
v0.0.0-...-4a740ba Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSplashFiles

func MakeSplashFiles(html, css, json protocol.File) (err error)

MakeSplashFiles make splash screen that use as landing page or first screen user see when open GUI app.

Types

type Assets

type Assets struct {
	GUI         protocol.FileDirectory
	MainHTMLDir protocol.FileDirectory // files name is just language in iso format e.g. "en", "fa",
	// OldBrowsers protocol.FileDirectory // files name is just language in iso format e.g. "en", "fa",
	ContentEncodings []string
}

func (*Assets) Init

func (a *Assets) Init()

func (*Assets) ReloadByCLI

func (a *Assets) ReloadByCLI()

ReloadByCLI block function and must call by seprate goroutine, otherwise it can block other app logic!

type JS

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

JS store data for its method

type MakeNewPageReq

type MakeNewPageReq struct {
	Domain      string
	ScopeName   string
	PageVarName string
}

type MakeNewPageRes

type MakeNewPageRes struct {
	JS, HTML, CSS, JSON []byte
}

func MakeNewPage

func MakeNewPage(req *MakeNewPageReq) (res *MakeNewPageRes, err error)

MakeNewPage generate 4 files for a ui page.

Jump to

Keyboard shortcuts

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