Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TD ¶ added in v0.0.7
type TD struct {
ID *mongoms.SimpleDocumentID `json:"id,omitempty" bson:"id,omitempty" readonly:"true"`
U1 string `json:"u1" bson:"u1" unique:"u1"`
}
func (TD) GetID ¶ added in v0.0.7
func (d TD) GetID() mongoms.IDocumentID
func (TD) SetID ¶ added in v0.0.7
func (d TD) SetID(id mongoms.IDocumentID)
type TD2 ¶ added in v0.0.7
type TD2 struct {
// All documents must have a IDocumentID
ID *mongoms.SimpleDocumentID `json:"id,omitempty" bson:"id,omitempty" readonly:"true"`
// U1 is a unique field such that there are no duplicates
U1 string `json:"u1" bson:"u1" unique:"u1"`
// E1 is an embedded ptr such the field name E1 *should* appear in the document record
E1 *E `bson:"e1"`
// E2 is an embedded ptr with an inline such that the field name E2 *should not* appear in the document record
E2 *E `bson:",inline"`
// E1 is an embedded struct such the field name E1 *should* appear in the document record
E3 E `bson:"e3"`
}
func (TD2) GetID ¶ added in v0.0.7
func (d TD2) GetID() mongoms.IDocumentID
func (TD2) SetID ¶ added in v0.0.7
func (d TD2) SetID(id mongoms.IDocumentID)
Click to show internal directories.
Click to hide internal directories.