asset

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Source string
	Path   string
	Digest string
}

func (Asset) LogValue

func (a Asset) LogValue() slog.Value

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