Documentation ¶
Index ¶
- type CreateEventAction
- func (action *CreateEventAction) Entity() ent.Entity
- func (action *CreateEventAction) ExistingEnt() ent.Entity
- func (action *CreateEventAction) GetBuilder() ent.MutationBuilder
- func (action *CreateEventAction) GetChangeset() (ent.Changeset, error)
- func (action *CreateEventAction) GetTypedBuilder() *builder.EventMutationBuilder
- func (action *CreateEventAction) GetValidators() []actions.Validator
- func (action *CreateEventAction) GetViewer() viewer.ViewerContext
- func (action *CreateEventAction) Save() (*models.Event, error)
- func (action *CreateEventAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *CreateEventAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *CreateEventAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *CreateEventAction) SetEndTime(endTime time.Time) *CreateEventAction
- func (action *CreateEventAction) SetLocation(location string) *CreateEventAction
- func (action *CreateEventAction) SetName(name string) *CreateEventAction
- func (action *CreateEventAction) SetNilableEndTime(endTime *time.Time) *CreateEventAction
- func (action *CreateEventAction) SetStartTime(startTime time.Time) *CreateEventAction
- func (action *CreateEventAction) SetUserID(userID string) *CreateEventAction
- func (action *CreateEventAction) SetUserIDBuilder(builder ent.MutationBuilder) *CreateEventAction
- func (action *CreateEventAction) Validate() error
- type EditEventRsvpStatusAction
- func (action *EditEventRsvpStatusAction) AddRsvpStatus(rsvpStatus string) *EditEventRsvpStatusAction
- func (action *EditEventRsvpStatusAction) AddUserID(userID string) *EditEventRsvpStatusAction
- func (action *EditEventRsvpStatusAction) Entity() ent.Entity
- func (action *EditEventRsvpStatusAction) ExistingEnt() ent.Entity
- func (action *EditEventRsvpStatusAction) GetBuilder() ent.MutationBuilder
- func (action *EditEventRsvpStatusAction) GetChangeset() (ent.Changeset, error)
- func (action *EditEventRsvpStatusAction) GetTypedBuilder() *builder.EventMutationBuilder
- func (action *EditEventRsvpStatusAction) GetViewer() viewer.ViewerContext
- func (action *EditEventRsvpStatusAction) Save() (*models.Event, error)
- func (action *EditEventRsvpStatusAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *EditEventRsvpStatusAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *EditEventRsvpStatusAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *EditEventRsvpStatusAction) Validate() error
- type EventTimeValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEventAction ¶
type CreateEventAction struct {
// contains filtered or unexported fields
}
func CreateEvent ¶
func CreateEvent(v viewer.ViewerContext) *CreateEventAction
CreateEvent is the factory method to get an ...
func CreateEventFromContext ¶
func CreateEventFromContext(ctx context.Context) *CreateEventAction
CreateEventFromContext is the factory method to get an ...
func (*CreateEventAction) Entity ¶
func (action *CreateEventAction) Entity() ent.Entity
func (*CreateEventAction) ExistingEnt ¶
func (action *CreateEventAction) ExistingEnt() ent.Entity
func (*CreateEventAction) GetBuilder ¶
func (action *CreateEventAction) GetBuilder() ent.MutationBuilder
func (*CreateEventAction) GetChangeset ¶
func (action *CreateEventAction) GetChangeset() (ent.Changeset, error)
func (*CreateEventAction) GetTypedBuilder ¶
func (action *CreateEventAction) GetTypedBuilder() *builder.EventMutationBuilder
func (*CreateEventAction) GetValidators ¶
func (action *CreateEventAction) GetValidators() []actions.Validator
func (*CreateEventAction) GetViewer ¶
func (action *CreateEventAction) GetViewer() viewer.ViewerContext
func (*CreateEventAction) Save ¶
func (action *CreateEventAction) Save() (*models.Event, error)
Save is the method called to execute this action and save change
func (*CreateEventAction) SetBuilderOnObservers ¶
func (action *CreateEventAction) SetBuilderOnObservers(observers []actions.Observer)
func (*CreateEventAction) SetBuilderOnTriggers ¶
func (action *CreateEventAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*CreateEventAction) SetBuilderOnValidators ¶
func (action *CreateEventAction) SetBuilderOnValidators(validators []actions.Validator)
func (*CreateEventAction) SetEndTime ¶
func (action *CreateEventAction) SetEndTime(endTime time.Time) *CreateEventAction
SetEndTime sets the EndTime while editing the Event ent
func (*CreateEventAction) SetLocation ¶
func (action *CreateEventAction) SetLocation(location string) *CreateEventAction
SetLocation sets the Location while editing the Event ent
func (*CreateEventAction) SetName ¶
func (action *CreateEventAction) SetName(name string) *CreateEventAction
SetName sets the Name while editing the Event ent
func (*CreateEventAction) SetNilableEndTime ¶
func (action *CreateEventAction) SetNilableEndTime(endTime *time.Time) *CreateEventAction
SetNilableEndTime sets the EndTime while editing the Event ent
func (*CreateEventAction) SetStartTime ¶
func (action *CreateEventAction) SetStartTime(startTime time.Time) *CreateEventAction
SetStartTime sets the StartTime while editing the Event ent
func (*CreateEventAction) SetUserID ¶
func (action *CreateEventAction) SetUserID(userID string) *CreateEventAction
SetUserID sets the UserID while editing the Event ent
func (*CreateEventAction) SetUserIDBuilder ¶
func (action *CreateEventAction) SetUserIDBuilder(builder ent.MutationBuilder) *CreateEventAction
SetUserIDBuilder sets the UserID while editing the Event ent
func (*CreateEventAction) Validate ¶
func (action *CreateEventAction) Validate() error
Validate returns an error if the current state of the action is not valid
type EditEventRsvpStatusAction ¶
type EditEventRsvpStatusAction struct {
// contains filtered or unexported fields
}
func EditEventRsvpStatus ¶
func EditEventRsvpStatus(v viewer.ViewerContext, event *models.Event) *EditEventRsvpStatusAction
EditEventRsvpStatus is the factory method to get an ...
func EditEventRsvpStatusFromContext ¶
func EditEventRsvpStatusFromContext(ctx context.Context, event *models.Event) *EditEventRsvpStatusAction
EditEventRsvpStatusFromContext is the factory method to get an ...
func (*EditEventRsvpStatusAction) AddRsvpStatus ¶
func (action *EditEventRsvpStatusAction) AddRsvpStatus(rsvpStatus string) *EditEventRsvpStatusAction
AddRsvpStatus sets the RsvpStatus while editing the Event ent
func (*EditEventRsvpStatusAction) AddUserID ¶
func (action *EditEventRsvpStatusAction) AddUserID(userID string) *EditEventRsvpStatusAction
AddUserID sets the UserID while editing the Event ent
func (*EditEventRsvpStatusAction) Entity ¶
func (action *EditEventRsvpStatusAction) Entity() ent.Entity
func (*EditEventRsvpStatusAction) ExistingEnt ¶
func (action *EditEventRsvpStatusAction) ExistingEnt() ent.Entity
func (*EditEventRsvpStatusAction) GetBuilder ¶
func (action *EditEventRsvpStatusAction) GetBuilder() ent.MutationBuilder
func (*EditEventRsvpStatusAction) GetChangeset ¶
func (action *EditEventRsvpStatusAction) GetChangeset() (ent.Changeset, error)
func (*EditEventRsvpStatusAction) GetTypedBuilder ¶
func (action *EditEventRsvpStatusAction) GetTypedBuilder() *builder.EventMutationBuilder
func (*EditEventRsvpStatusAction) GetViewer ¶
func (action *EditEventRsvpStatusAction) GetViewer() viewer.ViewerContext
func (*EditEventRsvpStatusAction) Save ¶
func (action *EditEventRsvpStatusAction) Save() (*models.Event, error)
Save is the method called to execute this action and save change
func (*EditEventRsvpStatusAction) SetBuilderOnObservers ¶
func (action *EditEventRsvpStatusAction) SetBuilderOnObservers(observers []actions.Observer)
func (*EditEventRsvpStatusAction) SetBuilderOnTriggers ¶
func (action *EditEventRsvpStatusAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*EditEventRsvpStatusAction) SetBuilderOnValidators ¶
func (action *EditEventRsvpStatusAction) SetBuilderOnValidators(validators []actions.Validator)
func (*EditEventRsvpStatusAction) Validate ¶
func (action *EditEventRsvpStatusAction) Validate() error
Validate returns an error if the current state of the action is not valid
type EventTimeValidator ¶
type EventTimeValidator struct {
event.EventMutationCallback
}
func (*EventTimeValidator) Validate ¶
func (v *EventTimeValidator) Validate() error