Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BustedName ¶
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)
Click to show internal directories.
Click to hide internal directories.