Documentation ¶
Index ¶
- type Container
- func (c *Container) AddMember(e *Entity) []*Entity
- func (c *Container) ArchiveRaw(db orm.DB) Terror
- func (c *Container) Clone() *Container
- func (c *Container) CloneNew() *Container
- func (c *Container) CreateRaw(db orm.DB) Terror
- func (c *Container) GetMembers() []*Entity
- func (c *Container) RemoveMember(t *Entity) (bool, []*Entity)
- func (c *Container) RemoveMemberAt(i int) (bool, []*Entity)
- func (c *Container) SetMembers(m []*Entity)
- func (c *Container) UpdateRaw(db orm.DB) Terror
- type ContainerMembers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Entity Members []*Entity `pg:"many2many:container_members,joinFK:member"` // contains filtered or unexported fields }
func ModelContainer ¶
ModelContainer provides a(n initially empty) Entity receiver and base query.
func NewContainer ¶
func (*Container) ArchiveRaw ¶
Archive updates a Container record in the DB. As Containers are logically abstract, one would typically only call this as part of another items archive sequence.
func (*Container) CreateRaw ¶
Create creates (or inserts) a new Container record into the DB. As Containers are logically abstract, one would typically only call this as part of another items create sequence.
func (*Container) GetMembers ¶
func (c *Container) GetMembers() []*Entity
func (*Container) RemoveMember ¶
func (*Container) RemoveMemberAt ¶
func (*Container) SetMembers ¶
func (c *Container) SetMembers(m []*Entity)
type ContainerMembers ¶
type ContainerMembers struct { ContainerID EID Member EID }
Click to show internal directories.
Click to hide internal directories.