Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheControlMiddleware ¶
func CacheControlMiddleware(next echo.HandlerFunc) echo.HandlerFunc
CacheControlMiddleware adds Cache-Control headers to static assets so that browsers can cache them for subsequent requests. Note that this should only be used on unique filenames such as those generated by the build process.
func ViteHandler ¶
func ViteHandler(prefix string) echo.HandlerFunc
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) RegisterRoutes ¶
func (s *Service) RegisterRoutes()
type Vite ¶
type Vite struct { HTMLTags string // contains filtered or unexported fields }
func NewVite ¶
func NewVite(cfg ViteConfig) (*Vite, error)
type ViteConfig ¶
type ViteManifest ¶
type ViteManifest struct {
Files map[string]viteItem
}
Click to show internal directories.
Click to hide internal directories.