Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
Dir string
}
func (*Downloader) Handle ¶
func (d *Downloader) Handle() handler.Handle
type StaticResourceHandler ¶
type StaticResourceHandler struct {
// contains filtered or unexported fields
}
func NewStaticResourceHandler ¶
func NewStaticResourceHandler(dir string, pathPrefix string, options ...StaticResourceHandlerOption) *StaticResourceHandler
func (*StaticResourceHandler) Handler ¶
func (s *StaticResourceHandler) Handler(ctx *context.Context)
type StaticResourceHandlerOption ¶
type StaticResourceHandlerOption func(handler *StaticResourceHandler)
func WithFileCache ¶
func WithFileCache(maxFileSizeThreshold int, maxCacheFileCnt int) StaticResourceHandlerOption
func WithMoreExtension ¶
func WithMoreExtension(extMap map[string]string) StaticResourceHandlerOption
Click to show internal directories.
Click to hide internal directories.