asset

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAssetNotFound = errors.New("asset not found")

Functions

func Helpers added in v0.0.22

func Helpers(r Registry) template.FuncMap

Types

type Asset

type Asset struct {
	Source string
	Path   string
	Digest string
}

type Registry

type Registry interface {
	Get(string) (*Asset, error) // returns ErrAssetNotFound if not present
}

type StaticRegistry

type StaticRegistry map[string]*Asset

func (StaticRegistry) Get

func (sr StaticRegistry) Get(source string) (*Asset, error)

type Watcher

type Watcher interface {
	http.Handler
	Run(ctx context.Context) error
	ClientTags() template.HTML
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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