mixins

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMixin

type BaseMixin struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

BaseMixin implements the ent.Mixin for sharing base fields with package schemas.

func (BaseMixin) Fields

func (BaseMixin) Fields() []ent.Field

type StatusMixin

type StatusMixin struct {
	mixin.Schema
}

StatusMixin implements the ent.Mixin for sharing status fields with package schemas.

func (StatusMixin) Fields

func (StatusMixin) Fields() []ent.Field

type UUIDMixin added in v0.2.1

type UUIDMixin struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

UUIDMixin implements the ent.Mixin for sharing UUID fields with package schemas.

func (UUIDMixin) Fields added in v0.2.1

func (UUIDMixin) Fields() []ent.Field

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL