statik

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

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package statik contains an HTTP file system that works with zip contents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Foreach

func Foreach(predicate func(name string, f *model.Asset))

Foreach iterates on the static assets.

func GetAsset

func GetAsset(name string) *model.Asset

GetAsset returns the asset with the given name.

func Register

func Register(brotliData string)

Register registers brotli contents data, later used to initialize the statik file system.

func StoreAsset

func StoreAsset(asset *model.Asset)

StoreAsset stores in memory a static asset

func UnstoreAsset

func UnstoreAsset(asset *model.Asset)

UnstoreAsset removes a static asset from the memory list

Types

This section is empty.

Jump to

Keyboard shortcuts

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