Documentation ¶
Index ¶
- type AddressCallbackWithBuilder
- type AddressMutationBuilder
- func (b *AddressMutationBuilder) Entity() ent.Entity
- func (b *AddressMutationBuilder) ExistingEnt() ent.Entity
- func (b *AddressMutationBuilder) GetAddress() *models.Address
- func (b *AddressMutationBuilder) GetChangeset() (ent.Changeset, error)
- func (b *AddressMutationBuilder) GetCity() string
- func (b *AddressMutationBuilder) GetCountry() string
- func (b *AddressMutationBuilder) GetFields() ent.FieldMap
- func (b *AddressMutationBuilder) GetOperation() ent.WriteOperation
- func (b *AddressMutationBuilder) GetPlaceholderID() string
- func (b *AddressMutationBuilder) GetResidentNames() []string
- func (b *AddressMutationBuilder) GetState() string
- func (b *AddressMutationBuilder) GetStreetAddress() string
- func (b *AddressMutationBuilder) GetViewer() viewer.ViewerContext
- func (b *AddressMutationBuilder) GetZip() string
- func (b *AddressMutationBuilder) SetCity(city string) *AddressMutationBuilder
- func (b *AddressMutationBuilder) SetCountry(country string) *AddressMutationBuilder
- func (b *AddressMutationBuilder) SetObservers(observers []actions.Observer)
- func (b *AddressMutationBuilder) SetResidentNames(residentNames []string) *AddressMutationBuilder
- func (b *AddressMutationBuilder) SetState(state string) *AddressMutationBuilder
- func (b *AddressMutationBuilder) SetStreetAddress(streetAddress string) *AddressMutationBuilder
- func (b *AddressMutationBuilder) SetTriggers(triggers []actions.Trigger)
- func (b *AddressMutationBuilder) SetValidators(validators []actions.Validator)
- func (b *AddressMutationBuilder) SetZip(zip string) *AddressMutationBuilder
- func (b *AddressMutationBuilder) Validate() error
- type AddressMutationCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressCallbackWithBuilder ¶
type AddressCallbackWithBuilder interface {
SetBuilder(*AddressMutationBuilder)
}
type AddressMutationBuilder ¶
type AddressMutationBuilder struct {
// contains filtered or unexported fields
}
func NewMutationBuilder ¶
func NewMutationBuilder( v viewer.ViewerContext, operation ent.WriteOperation, requiredFields []string, opts ...func(*actions.EntMutationBuilder), ) *AddressMutationBuilder
func (*AddressMutationBuilder) Entity ¶
func (b *AddressMutationBuilder) Entity() ent.Entity
func (*AddressMutationBuilder) ExistingEnt ¶
func (b *AddressMutationBuilder) ExistingEnt() ent.Entity
func (*AddressMutationBuilder) GetAddress ¶
func (b *AddressMutationBuilder) GetAddress() *models.Address
func (*AddressMutationBuilder) GetChangeset ¶
func (b *AddressMutationBuilder) GetChangeset() (ent.Changeset, error)
TODO rename from GetChangeset to Build() A Builder builds.
func (*AddressMutationBuilder) GetCity ¶
func (b *AddressMutationBuilder) GetCity() string
func (*AddressMutationBuilder) GetCountry ¶
func (b *AddressMutationBuilder) GetCountry() string
func (*AddressMutationBuilder) GetFields ¶
func (b *AddressMutationBuilder) GetFields() ent.FieldMap
GetFields returns the field configuration for this mutation builder
func (*AddressMutationBuilder) GetOperation ¶
func (b *AddressMutationBuilder) GetOperation() ent.WriteOperation
func (*AddressMutationBuilder) GetPlaceholderID ¶
func (b *AddressMutationBuilder) GetPlaceholderID() string
func (*AddressMutationBuilder) GetResidentNames ¶
func (b *AddressMutationBuilder) GetResidentNames() []string
func (*AddressMutationBuilder) GetState ¶
func (b *AddressMutationBuilder) GetState() string
func (*AddressMutationBuilder) GetStreetAddress ¶
func (b *AddressMutationBuilder) GetStreetAddress() string
func (*AddressMutationBuilder) GetViewer ¶
func (b *AddressMutationBuilder) GetViewer() viewer.ViewerContext
func (*AddressMutationBuilder) GetZip ¶
func (b *AddressMutationBuilder) GetZip() string
func (*AddressMutationBuilder) SetCity ¶
func (b *AddressMutationBuilder) SetCity(city string) *AddressMutationBuilder
func (*AddressMutationBuilder) SetCountry ¶
func (b *AddressMutationBuilder) SetCountry(country string) *AddressMutationBuilder
func (*AddressMutationBuilder) SetObservers ¶
func (b *AddressMutationBuilder) SetObservers(observers []actions.Observer)
SetObservers sets the builder on the observers.
func (*AddressMutationBuilder) SetResidentNames ¶
func (b *AddressMutationBuilder) SetResidentNames(residentNames []string) *AddressMutationBuilder
func (*AddressMutationBuilder) SetState ¶
func (b *AddressMutationBuilder) SetState(state string) *AddressMutationBuilder
func (*AddressMutationBuilder) SetStreetAddress ¶
func (b *AddressMutationBuilder) SetStreetAddress(streetAddress string) *AddressMutationBuilder
func (*AddressMutationBuilder) SetTriggers ¶
func (b *AddressMutationBuilder) SetTriggers(triggers []actions.Trigger)
SetTriggers sets the builder on the triggers.
func (*AddressMutationBuilder) SetValidators ¶
func (b *AddressMutationBuilder) SetValidators(validators []actions.Validator)
SetValidators sets the builder on validators.
func (*AddressMutationBuilder) SetZip ¶
func (b *AddressMutationBuilder) SetZip(zip string) *AddressMutationBuilder
func (*AddressMutationBuilder) Validate ¶
func (b *AddressMutationBuilder) Validate() error
Call Validate (should be Valid) at any point to validate that builder is valid
type AddressMutationCallback ¶
type AddressMutationCallback struct {
Builder *AddressMutationBuilder
}
func (*AddressMutationCallback) SetBuilder ¶
func (callback *AddressMutationCallback) SetBuilder(b *AddressMutationBuilder)
Click to show internal directories.
Click to hide internal directories.