event

package
v0.0.38-alpha7 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCallbackWithBuilder

type EventCallbackWithBuilder interface {
	SetBuilder(*EventMutationBuilder)
}

type EventMutationBuilder

type EventMutationBuilder struct {
	// contains filtered or unexported fields
}

func NewMutationBuilder

func NewMutationBuilder(
	v viewer.ViewerContext,
	operation ent.WriteOperation,
	requiredFields []string,
	opts ...func(*actions.EntMutationBuilder),
) *EventMutationBuilder

func (*EventMutationBuilder) AddAttending

func (b *EventMutationBuilder) AddAttending(users ...*models.User) *EventMutationBuilder

AddAttending adds one or more instances of User to the Attending edge while editing the User ent

func (*EventMutationBuilder) AddAttendingID

func (b *EventMutationBuilder) AddAttendingID(userID string, options ...func(*ent.EdgeOperation)) *EventMutationBuilder

AddAttendingID adds an instance of User to the Attending edge while editing the User ent

func (*EventMutationBuilder) AddAttendingIDs

func (b *EventMutationBuilder) AddAttendingIDs(userIDs ...string) *EventMutationBuilder

AddAttendingIDs adds an instance of User to the Attending edge while editing the User ent

func (*EventMutationBuilder) AddCreator

func (b *EventMutationBuilder) AddCreator(users ...*models.User) *EventMutationBuilder

AddCreator adds one or more instances of User to the Creator edge while editing the User ent

func (*EventMutationBuilder) AddCreatorID

func (b *EventMutationBuilder) AddCreatorID(userID string, options ...func(*ent.EdgeOperation)) *EventMutationBuilder

AddCreatorID adds an instance of User to the Creator edge while editing the User ent

func (*EventMutationBuilder) AddCreatorIDs

func (b *EventMutationBuilder) AddCreatorIDs(userIDs ...string) *EventMutationBuilder

AddCreatorIDs adds an instance of User to the Creator edge while editing the User ent

func (*EventMutationBuilder) AddDeclined

func (b *EventMutationBuilder) AddDeclined(users ...*models.User) *EventMutationBuilder

AddDeclined adds one or more instances of User to the Declined edge while editing the User ent

func (*EventMutationBuilder) AddDeclinedID

func (b *EventMutationBuilder) AddDeclinedID(userID string, options ...func(*ent.EdgeOperation)) *EventMutationBuilder

AddDeclinedID adds an instance of User to the Declined edge while editing the User ent

func (*EventMutationBuilder) AddDeclinedIDs

func (b *EventMutationBuilder) AddDeclinedIDs(userIDs ...string) *EventMutationBuilder

AddDeclinedIDs adds an instance of User to the Declined edge while editing the User ent

func (*EventMutationBuilder) AddHostID

func (b *EventMutationBuilder) AddHostID(userID string, options ...func(*ent.EdgeOperation)) *EventMutationBuilder

AddHostID adds an instance of User to the Hosts edge while editing the User ent

func (*EventMutationBuilder) AddHostIDs

func (b *EventMutationBuilder) AddHostIDs(userIDs ...string) *EventMutationBuilder

AddHostIDs adds an instance of User to the Hosts edge while editing the User ent

func (*EventMutationBuilder) AddHosts

func (b *EventMutationBuilder) AddHosts(users ...*models.User) *EventMutationBuilder

AddHosts adds one or more instances of User to the Hosts edge while editing the User ent

func (*EventMutationBuilder) AddInvited

func (b *EventMutationBuilder) AddInvited(users ...*models.User) *EventMutationBuilder

AddInvited adds one or more instances of User to the Invited edge while editing the User ent

func (*EventMutationBuilder) AddInvitedID

func (b *EventMutationBuilder) AddInvitedID(userID string, options ...func(*ent.EdgeOperation)) *EventMutationBuilder

AddInvitedID adds an instance of User to the Invited edge while editing the User ent

func (*EventMutationBuilder) AddInvitedIDs

func (b *EventMutationBuilder) AddInvitedIDs(userIDs ...string) *EventMutationBuilder

AddInvitedIDs adds an instance of User to the Invited edge while editing the User ent

func (*EventMutationBuilder) Entity

func (b *EventMutationBuilder) Entity() ent.Entity

func (*EventMutationBuilder) ExistingEnt

func (b *EventMutationBuilder) ExistingEnt() ent.Entity

func (*EventMutationBuilder) GetChangeset

func (b *EventMutationBuilder) GetChangeset() (ent.Changeset, error)

TODO rename from GetChangeset to Build() A Builder builds.

func (*EventMutationBuilder) GetEndTime

func (b *EventMutationBuilder) GetEndTime() *time.Time

func (*EventMutationBuilder) GetEvent

func (b *EventMutationBuilder) GetEvent() *models.Event

func (*EventMutationBuilder) GetFields

func (b *EventMutationBuilder) GetFields() ent.FieldMap

GetFields returns the field configuration for this mutation builder

func (*EventMutationBuilder) GetLocation

func (b *EventMutationBuilder) GetLocation() string

func (*EventMutationBuilder) GetName

func (b *EventMutationBuilder) GetName() string

func (*EventMutationBuilder) GetOperation

func (b *EventMutationBuilder) GetOperation() ent.WriteOperation

func (*EventMutationBuilder) GetPlaceholderID

func (b *EventMutationBuilder) GetPlaceholderID() string

func (*EventMutationBuilder) GetStartTime

func (b *EventMutationBuilder) GetStartTime() time.Time

func (*EventMutationBuilder) GetUserID

func (b *EventMutationBuilder) GetUserID() string

func (*EventMutationBuilder) GetUserIDBuilder

func (b *EventMutationBuilder) GetUserIDBuilder() ent.MutationBuilder

func (*EventMutationBuilder) GetViewer

func (b *EventMutationBuilder) GetViewer() viewer.ViewerContext

func (*EventMutationBuilder) RemoveAttending

func (b *EventMutationBuilder) RemoveAttending(users ...*models.User) *EventMutationBuilder

RemoveAttending removes an instance of User from the Attending edge while editing the User ent

func (*EventMutationBuilder) RemoveAttendingID

func (b *EventMutationBuilder) RemoveAttendingID(userID string) *EventMutationBuilder

RemoveAttendingID removes an instance of User from the Attending edge while editing the User ent

func (*EventMutationBuilder) RemoveAttendingIDs

func (b *EventMutationBuilder) RemoveAttendingIDs(userIDs ...string) *EventMutationBuilder

RemoveAttendingIDs removes an instance of User from the Attending edge while editing the User ent

func (*EventMutationBuilder) RemoveCreator

func (b *EventMutationBuilder) RemoveCreator(users ...*models.User) *EventMutationBuilder

RemoveCreator removes an instance of User from the Creator edge while editing the User ent

func (*EventMutationBuilder) RemoveCreatorID

func (b *EventMutationBuilder) RemoveCreatorID(userID string) *EventMutationBuilder

RemoveCreatorID removes an instance of User from the Creator edge while editing the User ent

func (*EventMutationBuilder) RemoveCreatorIDs

func (b *EventMutationBuilder) RemoveCreatorIDs(userIDs ...string) *EventMutationBuilder

RemoveCreatorIDs removes an instance of User from the Creator edge while editing the User ent

func (*EventMutationBuilder) RemoveDeclined

func (b *EventMutationBuilder) RemoveDeclined(users ...*models.User) *EventMutationBuilder

RemoveDeclined removes an instance of User from the Declined edge while editing the User ent

func (*EventMutationBuilder) RemoveDeclinedID

func (b *EventMutationBuilder) RemoveDeclinedID(userID string) *EventMutationBuilder

RemoveDeclinedID removes an instance of User from the Declined edge while editing the User ent

func (*EventMutationBuilder) RemoveDeclinedIDs

func (b *EventMutationBuilder) RemoveDeclinedIDs(userIDs ...string) *EventMutationBuilder

RemoveDeclinedIDs removes an instance of User from the Declined edge while editing the User ent

func (*EventMutationBuilder) RemoveHostID

func (b *EventMutationBuilder) RemoveHostID(userID string) *EventMutationBuilder

RemoveHostID removes an instance of User from the Hosts edge while editing the User ent

func (*EventMutationBuilder) RemoveHostIDs

func (b *EventMutationBuilder) RemoveHostIDs(userIDs ...string) *EventMutationBuilder

RemoveHostIDs removes an instance of User from the Hosts edge while editing the User ent

func (*EventMutationBuilder) RemoveHosts

func (b *EventMutationBuilder) RemoveHosts(users ...*models.User) *EventMutationBuilder

RemoveHosts removes an instance of User from the Hosts edge while editing the User ent

func (*EventMutationBuilder) RemoveInvited

func (b *EventMutationBuilder) RemoveInvited(users ...*models.User) *EventMutationBuilder

RemoveInvited removes an instance of User from the Invited edge while editing the User ent

func (*EventMutationBuilder) RemoveInvitedID

func (b *EventMutationBuilder) RemoveInvitedID(userID string) *EventMutationBuilder

RemoveInvitedID removes an instance of User from the Invited edge while editing the User ent

func (*EventMutationBuilder) RemoveInvitedIDs

func (b *EventMutationBuilder) RemoveInvitedIDs(userIDs ...string) *EventMutationBuilder

RemoveInvitedIDs removes an instance of User from the Invited edge while editing the User ent

func (*EventMutationBuilder) SetEndTime

func (b *EventMutationBuilder) SetEndTime(endTime time.Time) *EventMutationBuilder

func (*EventMutationBuilder) SetEnumValue

func (b *EventMutationBuilder) SetEnumValue(enumValue string) *EventMutationBuilder

func (*EventMutationBuilder) SetIDValue

func (b *EventMutationBuilder) SetIDValue(idValue string, nodeType ent.NodeType) *EventMutationBuilder

func (*EventMutationBuilder) SetLocation

func (b *EventMutationBuilder) SetLocation(location string) *EventMutationBuilder

func (*EventMutationBuilder) SetName

func (*EventMutationBuilder) SetNilableEndTime

func (b *EventMutationBuilder) SetNilableEndTime(endTime *time.Time) *EventMutationBuilder

func (*EventMutationBuilder) SetObservers

func (b *EventMutationBuilder) SetObservers(observers []actions.Observer)

SetObservers sets the builder on the observers.

func (*EventMutationBuilder) SetStartTime

func (b *EventMutationBuilder) SetStartTime(startTime time.Time) *EventMutationBuilder

func (*EventMutationBuilder) SetTriggers

func (b *EventMutationBuilder) SetTriggers(triggers []actions.Trigger)

SetTriggers sets the builder on the triggers.

func (*EventMutationBuilder) SetUserID

func (b *EventMutationBuilder) SetUserID(userID string) *EventMutationBuilder

func (*EventMutationBuilder) SetUserIDBuilder

func (b *EventMutationBuilder) SetUserIDBuilder(builder ent.MutationBuilder) *EventMutationBuilder

func (*EventMutationBuilder) SetValidators

func (b *EventMutationBuilder) SetValidators(validators []actions.Validator)

SetValidators sets the builder on validators.

func (*EventMutationBuilder) Validate

func (b *EventMutationBuilder) Validate() error

Call Validate (should be Valid) at any point to validate that builder is valid

type EventMutationCallback

type EventMutationCallback struct {
	Builder *EventMutationBuilder
}

func (*EventMutationCallback) SetBuilder

func (callback *EventMutationCallback) SetBuilder(b *EventMutationBuilder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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