mixin

package
v0.0.0-...-8b6722b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Prefix string
}

Annotation captures the id prefix for a type.

func (Annotation) Name

func (a Annotation) Name() string

Name implements the ent Annotation interface.

type CreatedAtMixin

type CreatedAtMixin struct {
	mixin.Schema
}

func (CreatedAtMixin) Fields

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

type DeletedAtMixin

type DeletedAtMixin struct {
	mixin.Schema
}

func (DeletedAtMixin) Fields

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

type PULIDMixin

type PULIDMixin struct {
	mixin.Schema
	// contains filtered or unexported fields
}

func PULIDMixinWithPrefix

func PULIDMixinWithPrefix(prefix string) *PULIDMixin

MixinWithPrefix creates a Mixin that encodes the provided prefix.

func (PULIDMixin) Annotations

func (m PULIDMixin) Annotations() []schema.Annotation

Annotations returns the annotations for a Mixin instance.

func (PULIDMixin) Fields

func (m PULIDMixin) Fields() []ent.Field

type UpdatedAtMixin

type UpdatedAtMixin struct {
	mixin.Schema
}

func (UpdatedAtMixin) Fields

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

Jump to

Keyboard shortcuts

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