Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
BindTo string
}
func Bind ¶
func Bind() Annotation
func BindTo ¶
func BindTo(schema string) Annotation
func (*Annotation) Decode ¶
func (a *Annotation) Decode(annotation interface{}) error
Decode unmarshalls the annotation.
func (Annotation) Name ¶
func (Annotation) Name() string
Name implements schema.Annotation interface.
type EnumMapping ¶
type EnumMapping struct { From gen.Enum To *ir.EnumVariant }
type Extension ¶
type Extension struct { entc.DefaultExtension // contains filtered or unexported fields }
func NewExtension ¶
func NewExtension(cfg ExtensionConfig) (*Extension, error)
func (*Extension) Annotations ¶
func (ex *Extension) Annotations() []entc.Annotation
Annotations of the extension.
type ExtensionConfig ¶
type FieldMapping ¶
type FieldMapping struct { From *gen.Field To *ir.Field Enums []EnumMapping // only for enum fields }
type Mapping ¶
type Mapping struct { From *gen.Type To *ir.Type FieldMappings []FieldMapping EdgeMappings []EdgeMapping // contains filtered or unexported fields }
Mapping is used to render templates.
Click to show internal directories.
Click to hide internal directories.