Versions in this module Expand all Collapse all v0 v0.1.0 Mar 10, 2018 Changes in this version + const EntityStatusActive + const EntityStatusInactive + const FieldTypeChecklist + const FieldTypeDate + const FieldTypeEditor + const FieldTypeMedia + const FieldTypePlain + const FieldTypeRelation + const FieldTypeSelect + const FieldTypeSwitch + const MetaDateModeDate + const MetaDateModeDateTime + const MetaEditorModeRich + const MetaEditorModeSimple + const UserStatusActive + const UserStatusInactive + func ValidMediaTypes() []string + type Collection struct + CreateHook string + Created int64 + DeleteHook string + Fields []CollectionField + ID bson.ObjectId + Modified int64 + Name string + Title string + UpdateHook string + type CollectionField struct + Default interface{} + Key string + Label string + Meta interface{} + Multilingual bool + Required bool + Type string + Unique bool + func (m CollectionField) CastValue(value interface{}) interface{} + func (m CollectionField) IsEmptyValue(value interface{}) bool + func (m CollectionField) Validate() error + type CollectionForm struct + CreateHook string + DeleteHook string + Fields []CollectionField + Model *Collection + Name string + Title string + UpdateHook string + func (m CollectionForm) ResolveModel() *Collection + func (m CollectionForm) Validate() error + type Entity struct + CollectionID bson.ObjectId + Created int64 + Data map[string]map[string]interface{} + ID bson.ObjectId + Modified int64 + Status string + type EntityForm struct + CollectionID bson.ObjectId + Data map[string]map[string]interface{} + Model *Entity + Status string + func (m EntityForm) ResolveModel() *Entity + func (m EntityForm) Validate() error + type Key struct + Access map[string][]string + Created int64 + ID bson.ObjectId + Modified int64 + Title string + Token string + func (m Key) NewAuthToken(exp int64) (string, error) + type KeyForm struct + Access map[string][]string + Model *Key + Title string + func (m KeyForm) ResolveModel() *Key + func (m KeyForm) Validate() error + type Language struct + Created int64 + ID bson.ObjectId + Locale string + Modified int64 + Title string + type LanguageForm struct + Locale string + Model *Language + Title string + func (m LanguageForm) ResolveModel() *Language + func (m LanguageForm) Validate() error + type Media struct + Created int64 + Description string + ID bson.ObjectId + Modified int64 + Path string + Title string + Type string + func (m *Media) DeleteFile() error + func (m *Media) RealPath() string + func (m *Media) Thumbs() map[string]string + func (m *Media) Url() string + func (m Media) Validate() error + type MediaUpdateForm struct + Description string + Model *Media + Title string + func (m MediaUpdateForm) ResolveModel() *Media + func (m MediaUpdateForm) Validate() error + type MetaChecklist struct + Options []MetaChecklistOption + func NewMetaChecklist(data interface{}) (*MetaChecklist, error) + func (m MetaChecklist) Validate() error + type MetaChecklistOption struct + Name string + Value string + func (m MetaChecklistOption) Validate() error + type MetaDate struct + Mode string + func NewMetaDate(data interface{}) (*MetaDate, error) + func (m MetaDate) Validate() error + type MetaEditor struct + Mode string + func NewMetaEditor(data interface{}) (*MetaEditor, error) + func (m MetaEditor) Validate() error + type MetaFieldInterface interface + Validate func() error + type MetaMedia struct + Max uint8 + func NewMetaMedia(data interface{}) (*MetaMedia, error) + func (m MetaMedia) Validate() error + type MetaPlain struct + func NewMetaPlain(data interface{}) (*MetaPlain, error) + func (m MetaPlain) Validate() error + type MetaRelation struct + CollectionID bson.ObjectId + Max uint8 + func NewMetaRelation(data interface{}) (*MetaRelation, error) + func (m MetaRelation) Validate() error + type MetaSelect struct + Options []MetaSelectOption + func NewMetaSelect(data interface{}) (*MetaSelect, error) + func (m MetaSelect) Validate() error + type MetaSelectOption struct + Name string + Value string + func (m MetaSelectOption) Validate() error + type MetaSwitch struct + func NewMetaSwitch(data interface{}) (*MetaSwitch, error) + func (m MetaSwitch) Validate() error + type User struct + Access map[string][]string + Created int64 + Email string + ID bson.ObjectId + Modified int64 + PasswordHash string + ResetPasswordHash string + Status string + Username string + func (m *User) SetPassword(password string) + func (m *User) SetResetPasswordHash(exp int64) + func (m User) HasValidResetPasswordHash() bool + func (m User) NewAuthToken(exp int64) (string, error) + func (m User) ValidatePassword(password string) bool + type UserCreateForm struct + Access map[string][]string + Email string + Password string + PasswordConfirm string + Status string + Username string + func (m UserCreateForm) ResolveModel() *User + func (m UserCreateForm) Validate() error + type UserResetPasswordForm struct + Model *User + Password string + PasswordConfirm string + func (m UserResetPasswordForm) ResolveModel() *User + func (m UserResetPasswordForm) Validate() error + type UserUpdateForm struct + Access map[string][]string + Email string + Model *User + Password string + PasswordConfirm string + Status string + Username string + func (m UserUpdateForm) ResolveModel() *User + func (m UserUpdateForm) Validate() error