Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticDirHandler ¶
type StaticDirHandler struct {
// contains filtered or unexported fields
}
func NewStaticDirHandler ¶
func NewStaticDirHandler(options ...StaticDirHandlerOption) *StaticDirHandler
func NewStaticDirHandlerFromConfig ¶
func NewStaticDirHandlerFromConfig(sh *config.Static, options ...StaticDirHandlerOption) *StaticDirHandler
type StaticDirHandlerOption ¶
type StaticDirHandlerOption func(handler *StaticDirHandler)
func WithDefaultFS ¶
func WithDefaultFS(fs fs.FS, localPath string) StaticDirHandlerOption
func WithLocalPath ¶
func WithLocalPath(localPath string) StaticDirHandlerOption
Click to show internal directories.
Click to hide internal directories.