Documentation
¶
Index ¶
- type ContentImageStorage
- type HeaderImageStorage
- type LogoImageStorage
- type Page
- type PageContentColumn
- type PageContentColumnImage
- type PageLink
- type PageMeta
- type Release
- type ResponsiveImageStorage
- type Settings
- type SettingsAPIKey
- type SettingsCallToAction
- type SettingsContactDetails
- type SettingsHeader
- type SettingsIntroVideo
- type SettingsIntroVideoMeta
- type SettingsLogo
- type SettingsSidebarContent
- type SidebarImageStorage
- type SimpleImageStorage
- type Slideshow
- type SlideshowSlide
- type Video
- type VideoImageStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentImageStorage ¶
type ContentImageStorage struct{ SimpleImageStorage }
type HeaderImageStorage ¶
type HeaderImageStorage struct{ SimpleImageStorage }
type LogoImageStorage ¶
type LogoImageStorage struct{ SimpleImageStorage }
func (LogoImageStorage) GetSizes ¶
func (LogoImageStorage) GetSizes() map[string]media_library.Size
type Page ¶
type Page struct { gorm.Model Path string MenuWeight uint Links []PageLink Name string SEO PageMeta ContentColumns []PageContentColumn // contains filtered or unexported fields }
func (*Page) AfterDelete ¶
type PageContentColumn ¶
type PageContentColumn struct { gorm.Model PageID uint ColumnWidth string ColumnHeading string ColumnText string `sql:"size:2000"` ColumnImage []PageContentColumnImage // We only use 1 image but a slice allows image removal VideoID uint Video Video SlideshowID uint Slideshow Slideshow ColumnLink string }
type PageContentColumnImage ¶
type Release ¶
func (*Release) BeforeCreate ¶
type ResponsiveImageStorage ¶
type ResponsiveImageStorage struct{ media_library.FileSystem }
func (ResponsiveImageStorage) GetSizes ¶
func (ResponsiveImageStorage) GetSizes() map[string]media_library.Size
type Settings ¶
type Settings struct { gorm.Model Logo SettingsLogo ContactDetails SettingsContactDetails Header SettingsHeader CallToAction SettingsCallToAction IntroVideo SettingsIntroVideo Sidebar []SettingsSidebarContent Copyright string APIKeys SettingsAPIKey }
type SettingsAPIKey ¶
type SettingsCallToAction ¶
type SettingsContactDetails ¶
type SettingsHeader ¶
type SettingsIntroVideo ¶
type SettingsIntroVideoMeta ¶
type SettingsLogo ¶
type SettingsLogo struct { gorm.Model SettingsID uint Image LogoImageStorage `sql:"type:varchar(4096)"` Alt string }
type SettingsSidebarContent ¶
type SidebarImageStorage ¶
type SidebarImageStorage struct{ SimpleImageStorage }
type SimpleImageStorage ¶
type SimpleImageStorage struct{ media_library.Base }
func (SimpleImageStorage) GetFullPath ¶
func (s SimpleImageStorage) GetFullPath(url string, option *media_library.Option) (path string, err error)
func (SimpleImageStorage) Retrieve ¶
func (s SimpleImageStorage) Retrieve(url string) (*os.File, error)
func (SimpleImageStorage) Store ¶
func (s SimpleImageStorage) Store(url string, option *media_library.Option, reader io.Reader) error
type Slideshow ¶
type Slideshow struct { gorm.Model Name string Interval int Slides []SlideshowSlide }
type SlideshowSlide ¶
type SlideshowSlide struct { gorm.Model SlideshowID uint Image SimpleImageStorage `sql:"type:varchar(4096)"` Alt string }
type Video ¶
type Video struct { gorm.Model Name string YouTubeID string Title string Length string ThumbnailImage VideoImageStorage `sql:"type:varchar(4096)"` Alt string }
func (*Video) DisplayName ¶
type VideoImageStorage ¶
type VideoImageStorage struct{ SimpleImageStorage }
Click to show internal directories.
Click to hide internal directories.