address

package
v0.0.40-alpha8 Latest Latest
Warning

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

Go to latest
Published: May 11, 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 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 (*AddressMutationBuilder) GetZip

func (b *AddressMutationBuilder) GetZip() string

func (*AddressMutationBuilder) SetCity

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 (*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 (*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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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