Documentation
¶
Index ¶
Constants ¶
View Source
const (
IDKey = "owner_id"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comp ¶
type Comp struct{}
func ApplyComp ¶
func ApplyComp(c *Comp, modifiers ...CompOption) Comp
type CompOption ¶
type CompOption = contract.CompOption[Comp]
type Meta ¶
type Meta struct{}
func ApplyMeta ¶
func ApplyMeta(m *Meta, modifiers ...MetaOption) Meta
type MetaOption ¶
type MetaOption = contract.MetaOption[Meta]
type Owner ¶
type Owner struct {
Meta `bson:",inline"`
Comp `bson:",inline"`
// OwnerID is the ID of the owner of the document.
// example:5f7b1b9b9b9b9b9b9b9b9b9b
// required:true
OwnerID *primitive.ObjectID `bson:"owner_id" json:"owner_id" validate:"nonnilpointer,nonzeropointerelem"`
}
Owner represents the owner of a document. swagger:model
func (*Owner) GetOwnerID ¶
func (*Owner) SetOwnerID ¶
Click to show internal directories.
Click to hide internal directories.