Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceHandler ¶
func NewResourceHandler(webEngine *web_engine.WebEngine, frontendFiles embed.FS) backend.CallResourceHandler
func ServeFrontendFiles ¶
func ServeFrontendFiles(urlPrefix string, fs ServeFileSystem) gin.HandlerFunc
Types ¶
type ServeFileSystem ¶
type ServeFileSystem interface { http.FileSystem Exists(prefix string, path string) bool }
func EmbedFolder ¶
func EmbedFolder(fsEmbed embed.FS, targetPath string) ServeFileSystem
Click to show internal directories.
Click to hide internal directories.