Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetCache map[string]AssetObject
View Source
var AssetMux sync.Mutex
Functions ¶
func AssetsHandler ¶
func AssetsHandler(w http.ResponseWriter, r *http.Request)
Registered handler for the /assets path. Ensure the path name is relative by removing any leading slash or dots. If the resulting path is in the cache, the cached value is returned to the caller. If not in cache, attempt to read the file at the designated path within the assets directory, add it to the cache, and return the result.
func FlushAssetCache ¶
func FlushAssetCache()
Flush the cache of assets being held in memory on behalf of the html services.
Types ¶
type AssetObject ¶
Click to show internal directories.
Click to hide internal directories.