Versions in this module Expand all Collapse all v0 v0.0.4 Jun 23, 2021 v0.0.3 Jun 23, 2021 Changes in this version type Site + HasUpdate bool + RemoteVersion string v0.0.2 Jun 17, 2021 v0.0.1 Jun 17, 2021 Changes in this version + const AdminRoleID + const ArchiveType + const AuthorRoleID + const BannedRoleID + const CategoryType + const ContributorRoleID + const EditorRoleID + const HomeType + const OwnerRoleID + const PageType + const SingleType + const WebPExtension + type AdminConfig struct + InactiveSessionTime int + Path string + type Categories []Category + type Category struct + ArchiveId *int + CreatedAt time.Time + Description *string + Id int + Name string + ParentId *int + Resource string + Slug string + UUID uuid.UUID + UpdatedAt time.Time + func (c *Category) HasParent() bool + type DBMap map[string]interface + func (m DBMap) Scan(value interface{}) error + func (m DBMap) Value() (driver.Value, error) + type Editor struct + Modules []string + Options map[string]interface{} + type Field struct + Instructions string + Label string + Layouts map[string]FieldLayout + Logic [][]FieldConditionalLogic + Name string + Options map[string]interface{} + Required bool + SubFields []Field + Type string + UUID uuid.UUID + Wrapper *FieldWrapper + type FieldConditionalLogic struct + Field string + Operator string + Value string + type FieldGroup struct + Fields []Field + Locations [][]FieldLocation + Title string + UUID uuid.UUID + type FieldGroups []FieldGroup + type FieldLayout struct + Display string + Label string + Name string + SubFields []Field + UUID uuid.UUID + type FieldLocation struct + Operator string + Param string + Value string + type FieldValue string + func (f FieldValue) Int() (int, error) + func (f FieldValue) IsEmpty() bool + func (f FieldValue) Slice() []string + func (f FieldValue) String() string + type FieldWrapper struct + Width int + type Fields []Field + type Form struct + Body interface{} + CreatedAt time.Time + EmailMessage string + EmailSend types.BitBool + EmailSubject string + Fields FormFields + Id int + Name string + Recipients string + StoreDB types.BitBool + Submissions FormSubmissions + UUID uuid.UUID + UpdatedAt time.Time + func (f *Form) GetRecipients() []string + type FormField struct + FormId int + Id int + Key string + Label FormLabel + Options DBMap + Required types.BitBool + Type string + UUID uuid.UUID + Validation string + type FormFields []FormField + type FormLabel string + func (f FormLabel) Name() string + func (f FormLabel) String() string + type FormSubmission struct + Fields FormValues + FormId int + IPAddress string + Id int + SentAt *time.Time + UUID uuid.UUID + UserAgent string + type FormSubmissions []FormSubmission + type FormValues map[string]interface + func (f FormValues) JSON() ([]byte, error) + func (f FormValues) Scan(value interface{}) error + func (f FormValues) Value() (driver.Value, error) + type Forms []Form + type Layout struct + Key string + Name string + type Layouts []Layout + type Media struct + Alt string + CreatedAt time.Time + Description string + FileName string + FilePath string + FileSize int64 + Id int + Mime Mime + Sizes MediaSizes + Title string + UUID uuid.UUID + UpdatedAt time.Time + Url string + UserId int + func (m *Media) Extension() string + func (m *Media) IsOrganiseYearMonth() bool + func (m *Media) PossibleFiles() []string + func (m *Media) UploadPath() string + type MediaConfig struct + AllowedFileTypes []string + UploadPath string + type MediaItems []Media + type MediaSize struct + Crop bool + FileSize int64 + Height int + Name string + SizeName string + UUID uuid.UUID + Url string + Width int + type MediaSizeOptions struct + Crop bool + Height int + Name string + Width int + type MediaSizes map[string]MediaSize + func (m MediaSizes) Scan(value interface{}) error + func (m MediaSizes) Value() (driver.Value, error) + type Mime string + func (m Mime) CanResize() bool + func (m Mime) IsJPG() bool + func (m Mime) IsPNG() bool + func (m Mime) String() string + type OptionDB struct + ID int + Name string + Value json.RawMessage + type Options struct + ActiveTheme string + BreadcrumbsEnable bool + BreadcrumbsHideHomePage bool + BreadcrumbsHomepageText string + BreadcrumbsSeparator string + BreadcrumbsTitle string + CacheFrontend bool + CacheFrontendExtension []string + CacheFrontendRequest string + CacheFrontendSeconds int64 + CacheServerFields bool + CacheServerTemplates bool + CodeInjectionFoot string + CodeInjectionHead string + ContactAddress string + ContactEmail string + ContactTelephone string + FormEmailDisclosure string + FormFromEmailAddress string + FormIncludeLogo bool + FormSendEmailAddresses []string + GeneralLocale string + Gzip bool + GzipCompression string + GzipExcludedExtensions []string + GzipExcludedPaths []string + GzipUsePaths bool + Homepage int + MediaCompression int + MediaConvertWebP bool + MediaOrganiseDate bool + MediaServeWebP bool + MediaSizes MediaSizes + MediaUploadMaxHeight int64 + MediaUploadMaxSize int64 + MediaUploadMaxWidth int64 + MetaDescription string + MetaFacebookDescription string + MetaFacebookImageId int + MetaFacebookTitle string + MetaTitle string + MetaTwitterDescription string + MetaTwitterImageID int + MetaTwitterTitle string + MinifyCSS bool + MinifyHTML bool + MinifyJS bool + MinifyJSON bool + MinifySVG bool + MinifyXML bool + SeoEnforceSlash bool + SeoPrivate bool + SeoRobots string + SeoRobotsServe bool + SeoSitemapExcluded []string + SeoSitemapRedirects bool + SeoSitemapServe bool + SiteDescription string + SiteLogo string + SiteTitle string + SiteUrl string + SocialFacebook string + SocialInstagram string + SocialLinkedIn string + SocialPinterest string + SocialTwitter string + SocialYoutube string + type OptionsDB []OptionDB + type OptionsDBMap map[string]interface + type PasswordReset struct + CreatedAt time.Time + Email string + Id int + Token string + type Post struct + CodeInjectionFoot string + CodeInjectionHead string + CreatedAt time.Time + Id int + IsArchive types.BitBool + PageLayout string + PageTemplate string + Permalink string + PublishedAt *time.Time + Resource string + SeoMeta PostOptions + Slug string + Status string + Title string + UUID uuid.UUID + UpdatedAt time.Time + UserId int + func (p *Post) IsPublic() bool + type PostCreate struct + Author int + Category *int + Fields PostFields + type PostData []PostDatum + type PostDatum struct + Author UserPart + Category *Category + Fields PostFields + Layout []FieldGroup + Type PostType + func (p *PostDatum) HasCategory() bool + func (p *PostDatum) HasResource() bool + func (p *PostDatum) IsHomepage(id int) bool + func (p *PostDatum) Tpl() PostTemplate + type PostFacebook struct + Description string + ImageId int + Title string + type PostField struct + Key string + Name string + OriginalValue FieldValue + PostId int + Type string + UUID uuid.UUID + Value interface{} + func (f *PostField) IsValueJSON() bool + func (f *PostField) TypeIsInSlice(arr []string) bool + type PostFields []PostField + type PostMeta struct + Description string + Facebook PostFacebook + Title string + Twitter PostTwitter + func (m *PostMeta) Scan(value interface{}) error + func (m *PostMeta) Value() (driver.Value, error) + type PostOptions struct + EditLock string + Id int + Meta *PostMeta + PostId int + Seo *PostSeo + type PostSeo struct + Canonical string + ExcludeSitemap bool + Private bool + func (m *PostSeo) Scan(value interface{}) error + func (m *PostSeo) Value() (driver.Value, error) + type PostTemplate struct + Author UserPart + Category *Category + Fields []PostField + type PostTwitter struct + Description string + ImageId int + Title string + type PostType struct + Data interface{} + PageType string + type Posts []Post + type Redirect struct + Code int + CreatedAt time.Time + From string + Id int + To string + UpdatedAt time.Time + type Redirects []Redirect + type Resource struct + AvailableTemplates []string + FriendlyName string + Hidden bool + HideCategorySlug bool + Icon string + Name string + SingularName string + Slug string + type Resources map[string]Resource + func (r Resources) Clean() Resources + type Role struct + Description string + Id int + Name string + type Roles []Role + type Site struct + Description string + Logo string + Title string + Url string + Version string + type Template struct + Key string + Name string + type Templates []Template + type Theme struct + Active bool + Description string + Name string + Screenshot string + Title string + Version string + type ThemeConfig struct + Admin AdminConfig + AssetsPath string + Editor Editor + FileExtension string + LayoutDir string + Media MediaConfig + Resources Resources + TemplateDir string + Theme Theme + type Themes []Theme + type User struct + Password string + Token string + TokenLastUsed *time.Time + func (u *User) HideCredentials() UserPart + func (u *User) HidePassword() + type UserCreate struct + ConfirmPassword string + Password string + type UserPart struct + Biography string + CreatedAt time.Time + Email string + EmailVerifiedAt *time.Time + Facebook string + FirstName string + Id int + Instagram string + LastName string + Linkedin string + ProfilePictureID *int + Role Role + Twitter string + UUID uuid.UUID + UpdatedAt time.Time + Website string + type UserPasswordReset struct + ConfirmPassword string + CurrentPassword string + DBPassword string + NewPassword string + type Users []User + func (u Users) HideCredentials() UsersParts + type UsersParts []UserPart