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 Config ¶
type Config struct { Authentication struct { Type AuthType OIDC struct { IssuerURL string ClientID string ClientSecret string } SessionAuthKey [64]byte SessionEncKey [32]byte } Database struct { Default Database Content Database Product Database } Features Features 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
type Features ¶
type Features struct { StartpageFeature Feature Categories struct { Enabled bool } Manufacturers struct { Enabled bool } Products struct { Enabled bool PublicURLTemplate string PublicURLTemplateParsed *template.Template ShortDescriptionOnly bool } Services struct { Enabled bool } Content struct { Enabled bool List ContentList } Events struct { Enabled bool WholeDaysOnly bool } }
Click to show internal directories.
Click to hide internal directories.