Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogHook = func(next ent.Mutator) ent.Mutator { return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { logger := log.With(log.NewStdLogger(os.Stdout), "ts", log.DefaultTimestamp, "service.name", "database", ) defer func() { logger.Log(log.LevelInfo, m.Op().String()) }() return next.Mutate(ctx, m) }) }
Functions ¶
This section is empty.
Types ¶
type Equipment ¶
Equipment holds the schema definition for the Equipment entity.
func (Equipment) Annotations ¶ added in v0.4.0
func (Equipment) Annotations() []schema.Annotation
type Vehicle ¶
Vehicle holds the schema definition for the Vehicle entity.
func (Vehicle) Annotations ¶ added in v0.4.0
func (Vehicle) Annotations() []schema.Annotation
Click to show internal directories.
Click to hide internal directories.