web

package
v0.0.0-...-3329678 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BustedName

func BustedName(path string) string

func LookupMulti

func LookupMulti(m0 map[string]string, ks []string) []string

func RegisterPages

func RegisterPages(router *gin.Engine, authManager auth.AuthenticationManager, examplesCsif interfaces.CircuitStorageInterfaceFactory)

RegisterPages Registers the web-page-serving routes

Types

type FixedCache

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

Static cache which loads all static resources into memory at startup

func (FixedCache) GetBustedNames

func (s FixedCache) GetBustedNames(names ...string) []string

func (FixedCache) GetBustedNamesArr

func (s FixedCache) GetBustedNamesArr(names []string) []string

func (FixedCache) RegisterRoutes

func (s FixedCache) RegisterRoutes(router *gin.Engine)

type StaticCache

type StaticCache interface {
	GetBustedNames(name ...string) []string
	GetBustedNamesArr(name []string) []string
	RegisterRoutes(r *gin.Engine)
}

A cache for static resources

func NewDebugCache

func NewDebugCache(files []string) (StaticCache, error)

func NewFixedCache

func NewFixedCache(files []string) (StaticCache, error)

Jump to

Keyboard shortcuts

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