Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct { Application libapplication.AggregateInterface GenDomain string Create *RequestConfig Update *RequestConfig Delete *RequestConfig CustomQueries []*libdomain.CustomRequest CustomCommands []*libdomain.CustomRequest DisableSelect bool DisableCreate bool DisableUpdate bool DisableDelete bool Event bool // contains filtered or unexported fields }
Definition is used to declare the information of a model, so it can generate its code.
func (*Definition) Aggregate ¶
func (d *Definition) Aggregate() *libdomain.AggregateDefinition
func (*Definition) CustomRequests ¶
func (d *Definition) CustomRequests() []*libdomain.CustomRequest
type Definitions ¶
type Definitions struct { Prefix string Name string Repository string Tenant bool Auth bool // contains filtered or unexported fields }
Definitions contains all the graphql definitions in the service.
func (*Definitions) GetByID ¶
func (ds *Definitions) GetByID(id string) *Definition
GetByID return the specified definition by its ID.
func (*Definitions) GetTitle ¶
func (ds *Definitions) GetTitle() string
GetTitle is used to return the name of the definition with InitCap
func (*Definitions) Register ¶
func (ds *Definitions) Register(d *Definition)
Register is used to register a new definition into the service.
func (*Definitions) Slice ¶
func (ds *Definitions) Slice() []*Definition
Slice return the definitions as a slice.
type RequestConfig ¶
type RequestConfig struct{}
Click to show internal directories.
Click to hide internal directories.