Documentation ¶
Overview ¶
Package assetmgr facilitates the automatic generation and live updation of asset cachebusting tags as files are changed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("static file not found")
View Source
var ErrUnsupportedMethod = fmt.Errorf("unsupported method")
View Source
var _, Log = xlog.New("web.assetmgr")
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info interface { // Return asset modification time. ModTime() time.Time // Return cache invalidating hash tag. Tag() string // SHA256 hash of data. SHA256() []byte // Return path to asset. FullPath() string }
Represents an asset.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Asset manager.
var Default *Manager
Click to show internal directories.
Click to hide internal directories.