Documentation ¶
Index ¶
Constants ¶
View Source
const StorageTypeFS = "fs"
Variables ¶
This section is empty.
Functions ¶
func ParseAllowedImageConfigs ¶
func ParseAllowedImageConfigs(configs string) ([]imageproxy.ImageConfig, error)
Types ¶
type AuthBasicAuthConfig ¶ added in v0.4.0
type Config ¶
type Config struct { Authentication struct { Type AuthType BasicAuth struct { Username string Password string } OIDC struct { IssuerURL string } } Database struct { Default Database Content Database Product Database } Features struct { Categories struct { Enabled bool } Manufacturers struct { Enabled bool } Products struct { Enabled bool } Content struct { Enabled bool List ContentList } Events struct { Enabled bool WholeDaysOnly bool } } ImageProxy struct { BaseURL string Key string Salt string // Comma-separated list of allowed configs in format width:height:resizingType. // Example "100:100:FILL,300:200:FIT". Use "*" if not limiting the configs. AllowedConfigs string } Server struct { Debug bool Port int TrustedProxies []string } Storage struct { Images Storage } }
func ParseConfig ¶
type ContentList ¶
type ContentList []Content
func (ContentList) ToEntity ¶
func (cl ContentList) ToEntity() []entities.Content
Click to show internal directories.
Click to hide internal directories.