internal

package
v0.0.0-...-9d2714b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSPAServer

func NewSPAServer(port string, cache FileCache, staticDir string) *http.Server

Types

type CachedFile

type CachedFile interface {
	Path() string
	Data() []byte
	ContentType() string
	ContentLength() string
}

type FileCache

type FileCache interface {
	GetFile(filename string) (CachedFile, error)
}

func MustCreateFileCache

func MustCreateFileCache(embeddedContent embed.FS, envReplacements map[string]string) FileCache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL