Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCachePath(pathParts ...string) string
- func BuildDataPath(pathParts ...string) string
- func BuildLibraryPath(libraryPath string, pathParts ...string) string
- func BuildPath(base string, pathParts ...string) string
- func GetInitialAdmin() (string, string)
- func LoadEnv()
- func RelativePath(basePath string, fullPath string) string
- func SetEnv()
- type CacheOptions
- type CredentialsModel
- type DBOptions
- type GalleryOptions
- type ImageFormat
- type Layout
- type Library
- type OptionsModel
- type Visibility
Constants ¶
View Source
const ( Private Visibility = "private" Restricted = "restricted" Public = "public" )
Variables ¶
View Source
var AppEnvironment log.Environment
View Source
var LogLevel zapcore.Level
Functions ¶
func BuildCachePath ¶
func BuildDataPath ¶
func BuildLibraryPath ¶
func GetInitialAdmin ¶
func RelativePath ¶
Types ¶
type CacheOptions ¶ added in v0.4.0
type CredentialsModel ¶ added in v0.4.0
var Credentials *CredentialsModel // TODO: Encrypt in memory?
Credentials stores the JWT secret, and optionally a passphrase and credentials for the db
type GalleryOptions ¶ added in v0.8.1
type GalleryOptions struct { ThumbnailFormat ImageFormat FuzzySearchSimilarity float64 LTR bool }
type ImageFormat ¶ added in v0.8.1
type ImageFormat string
const ( WebP ImageFormat = "webp" AVIF = "avif" )
type Library ¶
func ParseBasePaths ¶
func ParseBasePaths() []Library
type OptionsModel ¶ added in v0.4.0
type OptionsModel struct { Environment log.Environment Domain string Hostname string Port string Secure bool SameSiteMode http.SameSite StrictACAO bool Registrations bool Visibility Visibility DB DBOptions Cache CacheOptions GalleryOptions GalleryOptions }
var Options *OptionsModel
Options stores the global configuration for the server
type Visibility ¶ added in v0.4.0
type Visibility string
Click to show internal directories.
Click to hide internal directories.