configs

package
v0.0.40-alpha4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressConfig

type AddressConfig struct{}

func (*AddressConfig) GetActions

func (config *AddressConfig) GetActions() []*ent.ActionConfig

func (*AddressConfig) GetFields

func (config *AddressConfig) GetFields() ent.FieldMap

GetFields returns the fields for the `Address` model

func (*AddressConfig) GetTableName

func (config *AddressConfig) GetTableName() string

type ContactConfig

type ContactConfig struct {
	// TODO: this is wrong. it should be possible to have multiple people storing the same user as a contact
	EmailAddress  string `unique:"true"`
	FirstName     string
	LastName      string
	UserID        string  `fkey:"UserConfig.ID"`
	Favorite      bool    `graphql:"_" nullable:"true"` // these 3 exist for testing casts...
	NumberOfCalls int     `graphql:"_" nullable:"true" default:"0"`
	Pi            float64 `graphql:"_" nullable:"true"`
}

func (*ContactConfig) GetActions

func (config *ContactConfig) GetActions() []*ent.ActionConfig

func (*ContactConfig) GetEdges

func (config *ContactConfig) GetEdges() ent.EdgeMap

func (*ContactConfig) GetTableName

func (config *ContactConfig) GetTableName() string

type ContactEmailConfig

type ContactEmailConfig struct {
	EmailAddress string
	Label        string
	ContactID    string `fkey:"ContactConfig.ID"`
}

func (*ContactEmailConfig) GetTableName

func (config *ContactEmailConfig) GetTableName() string

GetTableName returns the underyling database table the model's data is stored

type EventConfig

type EventConfig struct{}

func (*EventConfig) GetActions

func (config *EventConfig) GetActions() []*ent.ActionConfig

func (*EventConfig) GetEdges

func (config *EventConfig) GetEdges() ent.EdgeMap

func (*EventConfig) GetFields

func (config *EventConfig) GetFields() ent.FieldMap

func (*EventConfig) GetTableName

func (config *EventConfig) GetTableName() string

type UserConfig

type UserConfig struct{}

func (*UserConfig) GetActions

func (config *UserConfig) GetActions() []*ent.ActionConfig

func (*UserConfig) GetEdges

func (config *UserConfig) GetEdges() ent.EdgeMap

func (*UserConfig) GetFields

func (config *UserConfig) GetFields() ent.FieldMap

func (*UserConfig) GetTableName

func (config *UserConfig) GetTableName() string

Jump to

Keyboard shortcuts

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