Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailsMixin ¶
type DetailsMixin struct { // We embed the `mixin.Schema` to avoid // implementing the rest of the methods. mixin.Schema }
DetailsMixin implements the ent.Mixin for sharing entity details fields with package schemas.
func (DetailsMixin) Fields ¶
func (DetailsMixin) Fields() []ent.Field
type Pet ¶
Pet schema mixed-in the DetailsMixin fields and therefore has 3 fields: `age`, `name` and `weight`.
type TimeMixin ¶
type TimeMixin struct { // We embed the `mixin.Schema` to avoid // implementing the rest of the methods. mixin.Schema }
TimeMixin implements the ent.Mixin for sharing time fields with package schemas.
Click to show internal directories.
Click to hide internal directories.