Documentation ¶
Index ¶
- type CreateAddressAction
- func (action *CreateAddressAction) Entity() ent.Entity
- func (action *CreateAddressAction) ExistingEnt() ent.Entity
- func (action *CreateAddressAction) GetBuilder() ent.MutationBuilder
- func (action *CreateAddressAction) GetChangeset() (ent.Changeset, error)
- func (action *CreateAddressAction) GetTypedBuilder() *builder.AddressMutationBuilder
- func (action *CreateAddressAction) GetViewer() viewer.ViewerContext
- func (action *CreateAddressAction) Save() (*models.Address, error)
- func (action *CreateAddressAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *CreateAddressAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *CreateAddressAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *CreateAddressAction) SetCity(city string) *CreateAddressAction
- func (action *CreateAddressAction) SetCountry(country string) *CreateAddressAction
- func (action *CreateAddressAction) SetResidentNames(residentNames []string) *CreateAddressAction
- func (action *CreateAddressAction) SetState(state string) *CreateAddressAction
- func (action *CreateAddressAction) SetStreetAddress(streetAddress string) *CreateAddressAction
- func (action *CreateAddressAction) SetZip(zip string) *CreateAddressAction
- func (action *CreateAddressAction) Validate() error
- type DeleteAddressAction
- func (action *DeleteAddressAction) Entity() ent.Entity
- func (action *DeleteAddressAction) ExistingEnt() ent.Entity
- func (action *DeleteAddressAction) GetBuilder() ent.MutationBuilder
- func (action *DeleteAddressAction) GetChangeset() (ent.Changeset, error)
- func (action *DeleteAddressAction) GetTypedBuilder() *builder.AddressMutationBuilder
- func (action *DeleteAddressAction) GetViewer() viewer.ViewerContext
- func (action *DeleteAddressAction) Save() error
- func (action *DeleteAddressAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *DeleteAddressAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *DeleteAddressAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *DeleteAddressAction) Validate() error
- type EditAddressAction
- func (action *EditAddressAction) Entity() ent.Entity
- func (action *EditAddressAction) ExistingEnt() ent.Entity
- func (action *EditAddressAction) GetBuilder() ent.MutationBuilder
- func (action *EditAddressAction) GetChangeset() (ent.Changeset, error)
- func (action *EditAddressAction) GetTypedBuilder() *builder.AddressMutationBuilder
- func (action *EditAddressAction) GetViewer() viewer.ViewerContext
- func (action *EditAddressAction) Save() (*models.Address, error)
- func (action *EditAddressAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *EditAddressAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *EditAddressAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *EditAddressAction) SetCity(city string) *EditAddressAction
- func (action *EditAddressAction) SetCountry(country string) *EditAddressAction
- func (action *EditAddressAction) SetResidentNames(residentNames []string) *EditAddressAction
- func (action *EditAddressAction) SetState(state string) *EditAddressAction
- func (action *EditAddressAction) SetStreetAddress(streetAddress string) *EditAddressAction
- func (action *EditAddressAction) SetZip(zip string) *EditAddressAction
- func (action *EditAddressAction) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAddressAction ¶
type CreateAddressAction struct {
// contains filtered or unexported fields
}
func CreateAddress ¶
func CreateAddress(v viewer.ViewerContext) *CreateAddressAction
CreateAddress is the factory method to get an ...
func CreateAddressFromContext ¶
func CreateAddressFromContext(ctx context.Context) *CreateAddressAction
CreateAddressFromContext is the factory method to get an ...
func (*CreateAddressAction) Entity ¶
func (action *CreateAddressAction) Entity() ent.Entity
func (*CreateAddressAction) ExistingEnt ¶
func (action *CreateAddressAction) ExistingEnt() ent.Entity
func (*CreateAddressAction) GetBuilder ¶
func (action *CreateAddressAction) GetBuilder() ent.MutationBuilder
func (*CreateAddressAction) GetChangeset ¶
func (action *CreateAddressAction) GetChangeset() (ent.Changeset, error)
func (*CreateAddressAction) GetTypedBuilder ¶
func (action *CreateAddressAction) GetTypedBuilder() *builder.AddressMutationBuilder
func (*CreateAddressAction) GetViewer ¶
func (action *CreateAddressAction) GetViewer() viewer.ViewerContext
func (*CreateAddressAction) Save ¶
func (action *CreateAddressAction) Save() (*models.Address, error)
Save is the method called to execute this action and save change
func (*CreateAddressAction) SetBuilderOnObservers ¶
func (action *CreateAddressAction) SetBuilderOnObservers(observers []actions.Observer)
func (*CreateAddressAction) SetBuilderOnTriggers ¶
func (action *CreateAddressAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*CreateAddressAction) SetBuilderOnValidators ¶
func (action *CreateAddressAction) SetBuilderOnValidators(validators []actions.Validator)
func (*CreateAddressAction) SetCity ¶
func (action *CreateAddressAction) SetCity(city string) *CreateAddressAction
SetCity sets the City while editing the Address ent
func (*CreateAddressAction) SetCountry ¶
func (action *CreateAddressAction) SetCountry(country string) *CreateAddressAction
SetCountry sets the Country while editing the Address ent
func (*CreateAddressAction) SetResidentNames ¶
func (action *CreateAddressAction) SetResidentNames(residentNames []string) *CreateAddressAction
SetResidentNames sets the ResidentNames while editing the Address ent
func (*CreateAddressAction) SetState ¶
func (action *CreateAddressAction) SetState(state string) *CreateAddressAction
SetState sets the State while editing the Address ent
func (*CreateAddressAction) SetStreetAddress ¶
func (action *CreateAddressAction) SetStreetAddress(streetAddress string) *CreateAddressAction
SetStreetAddress sets the StreetAddress while editing the Address ent
func (*CreateAddressAction) SetZip ¶
func (action *CreateAddressAction) SetZip(zip string) *CreateAddressAction
SetZip sets the Zip while editing the Address ent
func (*CreateAddressAction) Validate ¶
func (action *CreateAddressAction) Validate() error
Validate returns an error if the current state of the action is not valid
type DeleteAddressAction ¶
type DeleteAddressAction struct {
// contains filtered or unexported fields
}
func DeleteAddress ¶
func DeleteAddress(v viewer.ViewerContext, address *models.Address) *DeleteAddressAction
DeleteAddress is the factory method to get an ...
func DeleteAddressFromContext ¶
func DeleteAddressFromContext(ctx context.Context, address *models.Address) *DeleteAddressAction
DeleteAddressFromContext is the factory method to get an ...
func (*DeleteAddressAction) Entity ¶
func (action *DeleteAddressAction) Entity() ent.Entity
func (*DeleteAddressAction) ExistingEnt ¶
func (action *DeleteAddressAction) ExistingEnt() ent.Entity
func (*DeleteAddressAction) GetBuilder ¶
func (action *DeleteAddressAction) GetBuilder() ent.MutationBuilder
func (*DeleteAddressAction) GetChangeset ¶
func (action *DeleteAddressAction) GetChangeset() (ent.Changeset, error)
func (*DeleteAddressAction) GetTypedBuilder ¶
func (action *DeleteAddressAction) GetTypedBuilder() *builder.AddressMutationBuilder
func (*DeleteAddressAction) GetViewer ¶
func (action *DeleteAddressAction) GetViewer() viewer.ViewerContext
func (*DeleteAddressAction) Save ¶
func (action *DeleteAddressAction) Save() error
Save is the method called to execute this action and save change
func (*DeleteAddressAction) SetBuilderOnObservers ¶
func (action *DeleteAddressAction) SetBuilderOnObservers(observers []actions.Observer)
func (*DeleteAddressAction) SetBuilderOnTriggers ¶
func (action *DeleteAddressAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*DeleteAddressAction) SetBuilderOnValidators ¶
func (action *DeleteAddressAction) SetBuilderOnValidators(validators []actions.Validator)
func (*DeleteAddressAction) Validate ¶
func (action *DeleteAddressAction) Validate() error
Validate returns an error if the current state of the action is not valid
type EditAddressAction ¶
type EditAddressAction struct {
// contains filtered or unexported fields
}
func EditAddress ¶
func EditAddress(v viewer.ViewerContext, address *models.Address) *EditAddressAction
EditAddress is the factory method to get an ...
func EditAddressFromContext ¶
func EditAddressFromContext(ctx context.Context, address *models.Address) *EditAddressAction
EditAddressFromContext is the factory method to get an ...
func (*EditAddressAction) Entity ¶
func (action *EditAddressAction) Entity() ent.Entity
func (*EditAddressAction) ExistingEnt ¶
func (action *EditAddressAction) ExistingEnt() ent.Entity
func (*EditAddressAction) GetBuilder ¶
func (action *EditAddressAction) GetBuilder() ent.MutationBuilder
func (*EditAddressAction) GetChangeset ¶
func (action *EditAddressAction) GetChangeset() (ent.Changeset, error)
func (*EditAddressAction) GetTypedBuilder ¶
func (action *EditAddressAction) GetTypedBuilder() *builder.AddressMutationBuilder
func (*EditAddressAction) GetViewer ¶
func (action *EditAddressAction) GetViewer() viewer.ViewerContext
func (*EditAddressAction) Save ¶
func (action *EditAddressAction) Save() (*models.Address, error)
Save is the method called to execute this action and save change
func (*EditAddressAction) SetBuilderOnObservers ¶
func (action *EditAddressAction) SetBuilderOnObservers(observers []actions.Observer)
func (*EditAddressAction) SetBuilderOnTriggers ¶
func (action *EditAddressAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*EditAddressAction) SetBuilderOnValidators ¶
func (action *EditAddressAction) SetBuilderOnValidators(validators []actions.Validator)
func (*EditAddressAction) SetCity ¶
func (action *EditAddressAction) SetCity(city string) *EditAddressAction
SetCity sets the City while editing the Address ent
func (*EditAddressAction) SetCountry ¶
func (action *EditAddressAction) SetCountry(country string) *EditAddressAction
SetCountry sets the Country while editing the Address ent
func (*EditAddressAction) SetResidentNames ¶
func (action *EditAddressAction) SetResidentNames(residentNames []string) *EditAddressAction
SetResidentNames sets the ResidentNames while editing the Address ent
func (*EditAddressAction) SetState ¶
func (action *EditAddressAction) SetState(state string) *EditAddressAction
SetState sets the State while editing the Address ent
func (*EditAddressAction) SetStreetAddress ¶
func (action *EditAddressAction) SetStreetAddress(streetAddress string) *EditAddressAction
SetStreetAddress sets the StreetAddress while editing the Address ent
func (*EditAddressAction) SetZip ¶
func (action *EditAddressAction) SetZip(zip string) *EditAddressAction
SetZip sets the Zip while editing the Address ent
func (*EditAddressAction) Validate ¶
func (action *EditAddressAction) Validate() error
Validate returns an error if the current state of the action is not valid