Versions in this module Expand all Collapse all v0 v0.10.0 Jan 1, 2019 Changes in this version + var ErrAllowHiddenItem = errors.New(`Allow hidden item`) + var ErrTypeNotRegistered = errors.New(typeNotRegistered) + var Types map[string]func() interface + func FmtBytes(size float64) string + func FmtTime(t int64) string + func NormalizeString(s string) (string, error) + func Slug(i Identifiable) (string, error) + type FileUpload struct + ContentLength int64 + ContentType string + Name string + Path string + func (f *FileUpload) MarshalEditor() ([]byte, error) + func (f *FileUpload) Push() []string + func (f *FileUpload) String() string + type Hideable interface + Hide func(http.ResponseWriter, *http.Request) error + type Hookable interface + AfterAPICreate func(http.ResponseWriter, *http.Request) error + AfterAPIDelete func(http.ResponseWriter, *http.Request) error + AfterAPIUpdate func(http.ResponseWriter, *http.Request) error + AfterAdminCreate func(http.ResponseWriter, *http.Request) error + AfterAdminDelete func(http.ResponseWriter, *http.Request) error + AfterAdminUpdate func(http.ResponseWriter, *http.Request) error + AfterApprove func(http.ResponseWriter, *http.Request) error + AfterDelete func(http.ResponseWriter, *http.Request) error + AfterDisable func(http.ResponseWriter, *http.Request) error + AfterEnable func(http.ResponseWriter, *http.Request) error + AfterReject func(http.ResponseWriter, *http.Request) error + AfterSave func(http.ResponseWriter, *http.Request) error + BeforeAPICreate func(http.ResponseWriter, *http.Request) error + BeforeAPIDelete func(http.ResponseWriter, *http.Request) error + BeforeAPIUpdate func(http.ResponseWriter, *http.Request) error + BeforeAdminCreate func(http.ResponseWriter, *http.Request) error + BeforeAdminDelete func(http.ResponseWriter, *http.Request) error + BeforeAdminUpdate func(http.ResponseWriter, *http.Request) error + BeforeApprove func(http.ResponseWriter, *http.Request) error + BeforeDelete func(http.ResponseWriter, *http.Request) error + BeforeDisable func(http.ResponseWriter, *http.Request) error + BeforeEnable func(http.ResponseWriter, *http.Request) error + BeforeReject func(http.ResponseWriter, *http.Request) error + BeforeSave func(http.ResponseWriter, *http.Request) error + type Identifiable interface + ItemID func() int + SetItemID func(int) + String func() string + UniqueID func() uuid.UUID + type Item struct + ID int + Slug string + Timestamp int64 + UUID uuid.UUID + Updated int64 + func (i *Item) ItemSlug() string + func (i *Item) SetItemID(id int) + func (i *Item) SetSlug(slug string) + func (i Item) AfterAPICreate(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterAPIDelete(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterAPIUpdate(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterAdminCreate(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterAdminDelete(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterAdminUpdate(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterApprove(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterDelete(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterDisable(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterEnable(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterReject(res http.ResponseWriter, req *http.Request) error + func (i Item) AfterSave(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeAPICreate(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeAPIDelete(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeAPIUpdate(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeAdminCreate(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeAdminDelete(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeAdminUpdate(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeApprove(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeDelete(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeDisable(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeEnable(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeReject(res http.ResponseWriter, req *http.Request) error + func (i Item) BeforeSave(res http.ResponseWriter, req *http.Request) error + func (i Item) IndexContent() bool + func (i Item) ItemID() int + func (i Item) SearchMapping() (*mapping.IndexMappingImpl, error) + func (i Item) String() string + func (i Item) Time() int64 + func (i Item) Touch() int64 + func (i Item) UniqueID() uuid.UUID + type Omittable interface + Omit func(http.ResponseWriter, *http.Request) ([]string, error) + type Pushable interface + Push func(http.ResponseWriter, *http.Request) ([]string, error) + type Sluggable interface + ItemSlug func() string + SetSlug func(string) + type Sortable interface + Time func() int64 + Touch func() int64