Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticFileHandler ¶
type StaticFileHandler struct {
// contains filtered or unexported fields
}
func NewStaticFileHandler ¶
func NewStaticFileHandler(options ...StaticFileHandlerOption) *StaticFileHandler
func NewStaticFileHandlerFromConfig ¶
func NewStaticFileHandlerFromConfig(shf *config.StaticFile, options ...StaticFileHandlerOption) *StaticFileHandler
type StaticFileHandlerOption ¶
type StaticFileHandlerOption func(handler *StaticFileHandler)
func WithDefaultFS ¶
func WithDefaultFS(fs fs.FS, localPath string) StaticFileHandlerOption
func WithLocalPath ¶
func WithLocalPath(localPath string) StaticFileHandlerOption
Click to show internal directories.
Click to hide internal directories.