Versions in this module Expand all Collapse all v2 v2.7.2 Jan 29, 2024 Changes in this version + const HeaderCacheControl + const HeaderContentLength + const HeaderContentType + const HeaderHost + const HeaderUpgrade + const HeaderUserAgent + const WailsUserAgentValue + func BuildAssetServerConfig(appOptions *options.App) (assetserver.Options, error) + func FindEmbedRootPath(fsys embed.FS) (string, error) + func FindPathToFile(fsys fs.FS, file string) (string, error) + func GetMimetype(filename string, data []byte) string + func NewAssetHandler(options assetserver.Options, log Logger) (http.Handler, error) + type AssetServer struct + func NewAssetServer(bindingsJSON string, options assetserver.Options, servingFromDisk bool, ...) (*AssetServer, error) + func NewAssetServerMainPage(bindingsJSON string, options *options.App, servingFromDisk bool, logger Logger, ...) (*AssetServer, error) + func NewAssetServerWithHandler(handler http.Handler, bindingsJSON string, servingFromDisk bool, logger Logger, ...) (*AssetServer, error) + func (d *AssetServer) AddPluginScript(pluginName string, script string) + func (d *AssetServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) + func (d *AssetServer) ServeWebViewRequest(req webview.Request) + func (d *AssetServer) UseRuntimeHandler(handler RuntimeHandler) + type Logger interface + Debug func(message string, args ...interface{}) + Error func(message string, args ...interface{}) + type RuntimeAssets interface + DesktopIPC func() []byte + RuntimeDesktopJS func() []byte + WebsocketIPC func() []byte + type RuntimeHandler interface + HandleRuntimeCall func(w http.ResponseWriter, r *http.Request)