Documentation
¶
Index ¶
- func Query(db *datastore.Datastore) datastore.Query
- type Media
- func (a *Media) Defaults()
- func (m *Media) DetermineUsage() Usage
- func (m Media) Fork() *Media
- func (m Media) GetMediaSearchFieldAndIds() (string, []string)
- func (m Media) GetParentMediaId() string
- func (a *Media) Init(db *datastore.Datastore)
- func (a Media) Kind() string
- func (m *Media) Load(ps []datastore.Property) (err error)
- func (m *Media) Save() (ps []datastore.Property, err error)
- type Type
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Media ¶
type Media struct {
mixin.BaseModel
Type Type `json:"type"`
URI []byte `json:"uri"`
ParentMediaId string `json:"parentMediaId,omitempty"`
// Only for filters and searches, don't rely on this after you get it out
// of the db. Always check m.ParentMediaId != "".
IsParent bool `json:"isParent"`
// Only for filters and searches, don't rely on this after you get it out
// of the db. Usage is based on which ids(below) are set, always call
// m.DetermineUsage() to get the correct usage.
Usage Usage `json:"usage"`
// This is for ads
AdIntegration
ProductId string `json:"productId,omitempty"`
}
func (*Media) DetermineUsage ¶
func (Media) GetMediaSearchFieldAndIds ¶
func (Media) GetParentMediaId ¶
Click to show internal directories.
Click to hide internal directories.