Versions in this module Expand all Collapse all v2 v2.17.2 Sep 3, 2021 Changes in this version + const TokenExpirationTime + const WSWriteDeadline + var NonModifiableFieldsForNonAdmin = []string + func NewHandler(imgSvc ImgService, fileCache FileCache, store *storage.Storage, ...) (http.Handler, error) + func PreviewSizeNames() []string + type FileCache interface + Delete func(ctx context.Context, key string) error + Load func(ctx context.Context, key string) ([]byte, bool, error) + Store func(ctx context.Context, key string, value []byte) error + type ImgService interface + FormatFromExtension func(ext string) (img.Format, error) + Resize func(ctx context.Context, in io.Reader, width, height int, out io.Writer, ...) error + type PreviewSize int + const PreviewSizeBig + const PreviewSizeThumb + func ParsePreviewSize(name string) (PreviewSize, error) + func (x *PreviewSize) Scan(value interface{}) error + func (x *PreviewSize) UnmarshalText(text []byte) error + func (x PreviewSize) MarshalText() ([]byte, error) + func (x PreviewSize) String() string + func (x PreviewSize) Value() (driver.Value, error) Other modules containing this package github.com/dolfly/filebrowser