Documentation
¶
Index ¶
- func CreateBrowseTagURL(tag string) string
- func CreateBrowseURL(id string) string
- func CreateBrowseURLPattern() string
- func CreateDownloadURL(filepath string) string
- func CreateDownloadURLPattern() string
- func CreateFilePathURL(p string) string
- func CreateGetImageURL(filepath string, index int) string
- func CreateGetImageURLPattern() string
- func CreateGetImageWithSizeURL(filepath string, index int, width int, height int) string
- func CreateMetaProvider() (provider meta.Provider, err error)
- func CreateRescanURL() string
- func CreateRescanURLPattern() string
- func CreateRootURL() string
- func CreateSetFavoriteURL(filepath string) string
- func CreateSetFavoriteURLPattern() string
- func CreateSetTagFavoriteURL(filepath string) string
- func CreateSetTagFavoriteURLPattern() string
- func CreateTagListURL() string
- func CreateTagListURLPattern() string
- func CreateTagProvider() (provider tag.Provider, err error)
- func CreateTagThumbnailURL(filepath string) string
- func CreateTagThumbnailURLPattern() string
- func CreateThumbnailURL(filepath string) string
- func CreateThumbnailURLPattern() string
- func CreateURL(p ...string) string
- func CreateUpdateCoverURL(filepath string, index int) string
- func CreateUpdateCoverURLPattern() string
- func CreateVersionString() string
- func CreateViewURL(filepath string) string
- func CreateViewURLPattern() string
- func GetImage(w http.ResponseWriter, r *http.Request, params httprouter.Params)
- func HtmlTemplateFuncMap() template.FuncMap
- func Init(o Options)
- func OpenZipEntry(m meta.Meta, index int) (content []byte, filename string, err error)
- func ParseParam(params httprouter.Params, key string) string
- func RescanLibraryHandler(w http.ResponseWriter, r *http.Request, params httprouter.Params)
- func WriteError(w http.ResponseWriter, err error)
- func WriteHtml(w http.ResponseWriter, content string)
- func WriteJson(w http.ResponseWriter, v any)
- type ErrorResponse
- type Options
- type RescanLibraryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBrowseTagURL ¶
func CreateBrowseURL ¶
func CreateBrowseURLPattern ¶
func CreateBrowseURLPattern() string
func CreateDownloadURL ¶
func CreateDownloadURLPattern ¶
func CreateDownloadURLPattern() string
func CreateFilePathURL ¶
func CreateGetImageURL ¶
func CreateGetImageURLPattern ¶
func CreateGetImageURLPattern() string
func CreateMetaProvider ¶
func CreateRescanURL ¶
func CreateRescanURL() string
func CreateRescanURLPattern ¶
func CreateRescanURLPattern() string
func CreateRootURL ¶
func CreateRootURL() string
func CreateSetFavoriteURL ¶
func CreateSetFavoriteURLPattern ¶
func CreateSetFavoriteURLPattern() string
func CreateSetTagFavoriteURL ¶
func CreateSetTagFavoriteURLPattern ¶
func CreateSetTagFavoriteURLPattern() string
func CreateTagListURL ¶
func CreateTagListURL() string
func CreateTagListURLPattern ¶
func CreateTagListURLPattern() string
func CreateTagProvider ¶
func CreateTagThumbnailURL ¶
func CreateTagThumbnailURLPattern ¶
func CreateTagThumbnailURLPattern() string
func CreateThumbnailURL ¶
func CreateThumbnailURLPattern ¶
func CreateThumbnailURLPattern() string
func CreateUpdateCoverURL ¶
func CreateUpdateCoverURLPattern ¶
func CreateUpdateCoverURLPattern() string
func CreateVersionString ¶
func CreateVersionString() string
func CreateViewURL ¶
func CreateViewURLPattern ¶
func CreateViewURLPattern() string
func GetImage ¶
func GetImage(w http.ResponseWriter, r *http.Request, params httprouter.Params)
GetImage returns an image with specific width/height while retains aspect ratio.
func HtmlTemplateFuncMap ¶
func OpenZipEntry ¶
func ParseParam ¶
func ParseParam(params httprouter.Params, key string) string
func RescanLibraryHandler ¶
func RescanLibraryHandler(w http.ResponseWriter, r *http.Request, params httprouter.Params)
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
func WriteHtml ¶
func WriteHtml(w http.ResponseWriter, content string)
func WriteJson ¶
func WriteJson(w http.ResponseWriter, v any)
Types ¶
type ErrorResponse ¶
type Options ¶
type Options struct { MetaProviderFactory meta.ProviderFactory TagProviderFactory tag.ProviderFactory VersionString string PathPrefix string PathRoot string PathBrowse string PathView string PathStatic string PathGetImage string PathUpdateCover string PathThumbnail string PathFavorite string PathDownload string PathRescanLibrary string PathTagFavorite string PathTagList string PathTagThumbnail string }
type RescanLibraryResponse ¶
type RescanLibraryResponse struct {
Result bool `json:"result"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.