Documentation ¶
Index ¶
- type AddFamilyMemberAction
- func (action *AddFamilyMemberAction) AddFamilyMemberID(userID string, options ...func(*ent.EdgeOperation)) *AddFamilyMemberAction
- func (action *AddFamilyMemberAction) AddFamilyMembers(users ...*models.User) *AddFamilyMemberAction
- func (action *AddFamilyMemberAction) Entity() ent.Entity
- func (action *AddFamilyMemberAction) ExistingEnt() ent.Entity
- func (action *AddFamilyMemberAction) GetBuilder() ent.MutationBuilder
- func (action *AddFamilyMemberAction) GetChangeset() (ent.Changeset, error)
- func (action *AddFamilyMemberAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *AddFamilyMemberAction) GetViewer() viewer.ViewerContext
- func (action *AddFamilyMemberAction) Save() (*models.User, error)
- func (action *AddFamilyMemberAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *AddFamilyMemberAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *AddFamilyMemberAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *AddFamilyMemberAction) Validate() error
- type AddFriendAction
- func (action *AddFriendAction) AddFriendID(userID string, options ...func(*ent.EdgeOperation)) *AddFriendAction
- func (action *AddFriendAction) AddFriends(users ...*models.User) *AddFriendAction
- func (action *AddFriendAction) Entity() ent.Entity
- func (action *AddFriendAction) ExistingEnt() ent.Entity
- func (action *AddFriendAction) GetBuilder() ent.MutationBuilder
- func (action *AddFriendAction) GetChangeset() (ent.Changeset, error)
- func (action *AddFriendAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *AddFriendAction) GetViewer() viewer.ViewerContext
- func (action *AddFriendAction) Save() (*models.User, error)
- func (action *AddFriendAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *AddFriendAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *AddFriendAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *AddFriendAction) Validate() error
- type CreateUserAction
- func (action *CreateUserAction) Entity() ent.Entity
- func (action *CreateUserAction) ExistingEnt() ent.Entity
- func (action *CreateUserAction) GetBuilder() ent.MutationBuilder
- func (action *CreateUserAction) GetChangeset() (ent.Changeset, error)
- func (action *CreateUserAction) GetObservers() []actions.Observer
- func (action *CreateUserAction) GetTriggers() []actions.Trigger
- func (action *CreateUserAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *CreateUserAction) GetViewer() viewer.ViewerContext
- func (action *CreateUserAction) Save() (*models.User, error)
- func (action *CreateUserAction) SetBio(bio string) *CreateUserAction
- func (action *CreateUserAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *CreateUserAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *CreateUserAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *CreateUserAction) SetEmailAddress(emailAddress string) *CreateUserAction
- func (action *CreateUserAction) SetFirstName(firstName string) *CreateUserAction
- func (action *CreateUserAction) SetLastName(lastName string) *CreateUserAction
- func (action *CreateUserAction) SetNilableBio(bio *string) *CreateUserAction
- func (action *CreateUserAction) SetNilablePhoneNumber(phoneNumber *string) *CreateUserAction
- func (action *CreateUserAction) SetPassword(password string) *CreateUserAction
- func (action *CreateUserAction) SetPhoneNumber(phoneNumber string) *CreateUserAction
- func (action *CreateUserAction) Validate() error
- type DeleteUserAction
- func (action *DeleteUserAction) Entity() ent.Entity
- func (action *DeleteUserAction) ExistingEnt() ent.Entity
- func (action *DeleteUserAction) GetBuilder() ent.MutationBuilder
- func (action *DeleteUserAction) GetChangeset() (ent.Changeset, error)
- func (action *DeleteUserAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *DeleteUserAction) GetViewer() viewer.ViewerContext
- func (action *DeleteUserAction) Save() error
- func (action *DeleteUserAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *DeleteUserAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *DeleteUserAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *DeleteUserAction) Validate() error
- type EditUserAction
- func (action *EditUserAction) Entity() ent.Entity
- func (action *EditUserAction) ExistingEnt() ent.Entity
- func (action *EditUserAction) GetBuilder() ent.MutationBuilder
- func (action *EditUserAction) GetChangeset() (ent.Changeset, error)
- func (action *EditUserAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *EditUserAction) GetViewer() viewer.ViewerContext
- func (action *EditUserAction) Save() (*models.User, error)
- func (action *EditUserAction) SetBio(bio string) *EditUserAction
- func (action *EditUserAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *EditUserAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *EditUserAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *EditUserAction) SetFirstName(firstName string) *EditUserAction
- func (action *EditUserAction) SetLastName(lastName string) *EditUserAction
- func (action *EditUserAction) SetNilableBio(bio *string) *EditUserAction
- func (action *EditUserAction) Validate() error
- type RemoveFamilyMemberAction
- func (action *RemoveFamilyMemberAction) Entity() ent.Entity
- func (action *RemoveFamilyMemberAction) ExistingEnt() ent.Entity
- func (action *RemoveFamilyMemberAction) GetBuilder() ent.MutationBuilder
- func (action *RemoveFamilyMemberAction) GetChangeset() (ent.Changeset, error)
- func (action *RemoveFamilyMemberAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *RemoveFamilyMemberAction) GetViewer() viewer.ViewerContext
- func (action *RemoveFamilyMemberAction) RemoveFamilyMemberID(userID string) *RemoveFamilyMemberAction
- func (action *RemoveFamilyMemberAction) RemoveFamilyMembers(users ...*models.User) *RemoveFamilyMemberAction
- func (action *RemoveFamilyMemberAction) Save() (*models.User, error)
- func (action *RemoveFamilyMemberAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *RemoveFamilyMemberAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *RemoveFamilyMemberAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *RemoveFamilyMemberAction) Validate() error
- type RemoveFriendAction
- func (action *RemoveFriendAction) Entity() ent.Entity
- func (action *RemoveFriendAction) ExistingEnt() ent.Entity
- func (action *RemoveFriendAction) GetBuilder() ent.MutationBuilder
- func (action *RemoveFriendAction) GetChangeset() (ent.Changeset, error)
- func (action *RemoveFriendAction) GetTypedBuilder() *builder.UserMutationBuilder
- func (action *RemoveFriendAction) GetViewer() viewer.ViewerContext
- func (action *RemoveFriendAction) RemoveFriendID(userID string) *RemoveFriendAction
- func (action *RemoveFriendAction) RemoveFriends(users ...*models.User) *RemoveFriendAction
- func (action *RemoveFriendAction) Save() (*models.User, error)
- func (action *RemoveFriendAction) SetBuilderOnObservers(observers []actions.Observer)
- func (action *RemoveFriendAction) SetBuilderOnTriggers(triggers []actions.Trigger)
- func (action *RemoveFriendAction) SetBuilderOnValidators(validators []actions.Validator)
- func (action *RemoveFriendAction) Validate() error
- type UserCreateContactTrigger
- type UserSendWelcomeEmailObserver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFamilyMemberAction ¶
type AddFamilyMemberAction struct {
// contains filtered or unexported fields
}
func AddFamilyMember ¶
func AddFamilyMember(v viewer.ViewerContext, user *models.User) *AddFamilyMemberAction
AddFamilyMember is the factory method to get an ...
func AddFamilyMemberFromContext ¶
func AddFamilyMemberFromContext(ctx context.Context, user *models.User) *AddFamilyMemberAction
AddFamilyMemberFromContext is the factory method to get an ...
func (*AddFamilyMemberAction) AddFamilyMemberID ¶
func (action *AddFamilyMemberAction) AddFamilyMemberID(userID string, options ...func(*ent.EdgeOperation)) *AddFamilyMemberAction
AddFamilyMemberID adds an instance of UserID to the FamilyMembers edge while editing the User ent
func (*AddFamilyMemberAction) AddFamilyMembers ¶
func (action *AddFamilyMemberAction) AddFamilyMembers(users ...*models.User) *AddFamilyMemberAction
AddFamilyMembers adds an instance of User to the FamilyMembers edge while editing the User ent
func (*AddFamilyMemberAction) Entity ¶
func (action *AddFamilyMemberAction) Entity() ent.Entity
func (*AddFamilyMemberAction) ExistingEnt ¶
func (action *AddFamilyMemberAction) ExistingEnt() ent.Entity
func (*AddFamilyMemberAction) GetBuilder ¶
func (action *AddFamilyMemberAction) GetBuilder() ent.MutationBuilder
func (*AddFamilyMemberAction) GetChangeset ¶
func (action *AddFamilyMemberAction) GetChangeset() (ent.Changeset, error)
func (*AddFamilyMemberAction) GetTypedBuilder ¶
func (action *AddFamilyMemberAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*AddFamilyMemberAction) GetViewer ¶
func (action *AddFamilyMemberAction) GetViewer() viewer.ViewerContext
func (*AddFamilyMemberAction) Save ¶
func (action *AddFamilyMemberAction) Save() (*models.User, error)
Save is the method called to execute this action and save change
func (*AddFamilyMemberAction) SetBuilderOnObservers ¶
func (action *AddFamilyMemberAction) SetBuilderOnObservers(observers []actions.Observer)
func (*AddFamilyMemberAction) SetBuilderOnTriggers ¶
func (action *AddFamilyMemberAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*AddFamilyMemberAction) SetBuilderOnValidators ¶
func (action *AddFamilyMemberAction) SetBuilderOnValidators(validators []actions.Validator)
func (*AddFamilyMemberAction) Validate ¶
func (action *AddFamilyMemberAction) Validate() error
Validate returns an error if the current state of the action is not valid
type AddFriendAction ¶
type AddFriendAction struct {
// contains filtered or unexported fields
}
func AddFriend ¶
func AddFriend(v viewer.ViewerContext, user *models.User) *AddFriendAction
AddFriend is the factory method to get an ...
func AddFriendFromContext ¶
func AddFriendFromContext(ctx context.Context, user *models.User) *AddFriendAction
AddFriendFromContext is the factory method to get an ...
func (*AddFriendAction) AddFriendID ¶
func (action *AddFriendAction) AddFriendID(userID string, options ...func(*ent.EdgeOperation)) *AddFriendAction
AddFriendID adds an instance of UserID to the Friends edge while editing the User ent
func (*AddFriendAction) AddFriends ¶
func (action *AddFriendAction) AddFriends(users ...*models.User) *AddFriendAction
AddFriends adds an instance of User to the Friends edge while editing the User ent
func (*AddFriendAction) Entity ¶
func (action *AddFriendAction) Entity() ent.Entity
func (*AddFriendAction) ExistingEnt ¶
func (action *AddFriendAction) ExistingEnt() ent.Entity
func (*AddFriendAction) GetBuilder ¶
func (action *AddFriendAction) GetBuilder() ent.MutationBuilder
func (*AddFriendAction) GetChangeset ¶
func (action *AddFriendAction) GetChangeset() (ent.Changeset, error)
func (*AddFriendAction) GetTypedBuilder ¶
func (action *AddFriendAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*AddFriendAction) GetViewer ¶
func (action *AddFriendAction) GetViewer() viewer.ViewerContext
func (*AddFriendAction) Save ¶
func (action *AddFriendAction) Save() (*models.User, error)
Save is the method called to execute this action and save change
func (*AddFriendAction) SetBuilderOnObservers ¶
func (action *AddFriendAction) SetBuilderOnObservers(observers []actions.Observer)
func (*AddFriendAction) SetBuilderOnTriggers ¶
func (action *AddFriendAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*AddFriendAction) SetBuilderOnValidators ¶
func (action *AddFriendAction) SetBuilderOnValidators(validators []actions.Validator)
func (*AddFriendAction) Validate ¶
func (action *AddFriendAction) Validate() error
Validate returns an error if the current state of the action is not valid
type CreateUserAction ¶
type CreateUserAction struct {
// contains filtered or unexported fields
}
func CreateUser ¶
func CreateUser(v viewer.ViewerContext) *CreateUserAction
CreateUser is the factory method to get an ...
func CreateUserFromContext ¶
func CreateUserFromContext(ctx context.Context) *CreateUserAction
CreateUserFromContext is the factory method to get an ...
func (*CreateUserAction) Entity ¶
func (action *CreateUserAction) Entity() ent.Entity
func (*CreateUserAction) ExistingEnt ¶
func (action *CreateUserAction) ExistingEnt() ent.Entity
func (*CreateUserAction) GetBuilder ¶
func (action *CreateUserAction) GetBuilder() ent.MutationBuilder
func (*CreateUserAction) GetChangeset ¶
func (action *CreateUserAction) GetChangeset() (ent.Changeset, error)
func (*CreateUserAction) GetObservers ¶
func (action *CreateUserAction) GetObservers() []actions.Observer
func (*CreateUserAction) GetTriggers ¶
func (action *CreateUserAction) GetTriggers() []actions.Trigger
func (*CreateUserAction) GetTypedBuilder ¶
func (action *CreateUserAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*CreateUserAction) GetViewer ¶
func (action *CreateUserAction) GetViewer() viewer.ViewerContext
func (*CreateUserAction) Save ¶
func (action *CreateUserAction) Save() (*models.User, error)
Save is the method called to execute this action and save change
func (*CreateUserAction) SetBio ¶
func (action *CreateUserAction) SetBio(bio string) *CreateUserAction
SetBio sets the Bio while editing the User ent
func (*CreateUserAction) SetBuilderOnObservers ¶
func (action *CreateUserAction) SetBuilderOnObservers(observers []actions.Observer)
func (*CreateUserAction) SetBuilderOnTriggers ¶
func (action *CreateUserAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*CreateUserAction) SetBuilderOnValidators ¶
func (action *CreateUserAction) SetBuilderOnValidators(validators []actions.Validator)
func (*CreateUserAction) SetEmailAddress ¶
func (action *CreateUserAction) SetEmailAddress(emailAddress string) *CreateUserAction
SetEmailAddress sets the EmailAddress while editing the User ent
func (*CreateUserAction) SetFirstName ¶
func (action *CreateUserAction) SetFirstName(firstName string) *CreateUserAction
SetFirstName sets the FirstName while editing the User ent
func (*CreateUserAction) SetLastName ¶
func (action *CreateUserAction) SetLastName(lastName string) *CreateUserAction
SetLastName sets the LastName while editing the User ent
func (*CreateUserAction) SetNilableBio ¶
func (action *CreateUserAction) SetNilableBio(bio *string) *CreateUserAction
SetNilableBio sets the Bio while editing the User ent
func (*CreateUserAction) SetNilablePhoneNumber ¶
func (action *CreateUserAction) SetNilablePhoneNumber(phoneNumber *string) *CreateUserAction
SetNilablePhoneNumber sets the PhoneNumber while editing the User ent
func (*CreateUserAction) SetPassword ¶
func (action *CreateUserAction) SetPassword(password string) *CreateUserAction
SetPassword sets the Password while editing the User ent
func (*CreateUserAction) SetPhoneNumber ¶
func (action *CreateUserAction) SetPhoneNumber(phoneNumber string) *CreateUserAction
SetPhoneNumber sets the PhoneNumber while editing the User ent
func (*CreateUserAction) Validate ¶
func (action *CreateUserAction) Validate() error
Validate returns an error if the current state of the action is not valid
type DeleteUserAction ¶
type DeleteUserAction struct {
// contains filtered or unexported fields
}
func DeleteUser ¶
func DeleteUser(v viewer.ViewerContext, user *models.User) *DeleteUserAction
DeleteUser is the factory method to get an ...
func DeleteUserFromContext ¶
func DeleteUserFromContext(ctx context.Context, user *models.User) *DeleteUserAction
DeleteUserFromContext is the factory method to get an ...
func (*DeleteUserAction) Entity ¶
func (action *DeleteUserAction) Entity() ent.Entity
func (*DeleteUserAction) ExistingEnt ¶
func (action *DeleteUserAction) ExistingEnt() ent.Entity
func (*DeleteUserAction) GetBuilder ¶
func (action *DeleteUserAction) GetBuilder() ent.MutationBuilder
func (*DeleteUserAction) GetChangeset ¶
func (action *DeleteUserAction) GetChangeset() (ent.Changeset, error)
func (*DeleteUserAction) GetTypedBuilder ¶
func (action *DeleteUserAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*DeleteUserAction) GetViewer ¶
func (action *DeleteUserAction) GetViewer() viewer.ViewerContext
func (*DeleteUserAction) Save ¶
func (action *DeleteUserAction) Save() error
Save is the method called to execute this action and save change
func (*DeleteUserAction) SetBuilderOnObservers ¶
func (action *DeleteUserAction) SetBuilderOnObservers(observers []actions.Observer)
func (*DeleteUserAction) SetBuilderOnTriggers ¶
func (action *DeleteUserAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*DeleteUserAction) SetBuilderOnValidators ¶
func (action *DeleteUserAction) SetBuilderOnValidators(validators []actions.Validator)
func (*DeleteUserAction) Validate ¶
func (action *DeleteUserAction) Validate() error
Validate returns an error if the current state of the action is not valid
type EditUserAction ¶
type EditUserAction struct {
// contains filtered or unexported fields
}
func EditUser ¶
func EditUser(v viewer.ViewerContext, user *models.User) *EditUserAction
EditUser is the factory method to get an ...
func EditUserFromContext ¶
func EditUserFromContext(ctx context.Context, user *models.User) *EditUserAction
EditUserFromContext is the factory method to get an ...
func (*EditUserAction) Entity ¶
func (action *EditUserAction) Entity() ent.Entity
func (*EditUserAction) ExistingEnt ¶
func (action *EditUserAction) ExistingEnt() ent.Entity
func (*EditUserAction) GetBuilder ¶
func (action *EditUserAction) GetBuilder() ent.MutationBuilder
func (*EditUserAction) GetChangeset ¶
func (action *EditUserAction) GetChangeset() (ent.Changeset, error)
func (*EditUserAction) GetTypedBuilder ¶
func (action *EditUserAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*EditUserAction) GetViewer ¶
func (action *EditUserAction) GetViewer() viewer.ViewerContext
func (*EditUserAction) Save ¶
func (action *EditUserAction) Save() (*models.User, error)
Save is the method called to execute this action and save change
func (*EditUserAction) SetBio ¶
func (action *EditUserAction) SetBio(bio string) *EditUserAction
SetBio sets the Bio while editing the User ent
func (*EditUserAction) SetBuilderOnObservers ¶
func (action *EditUserAction) SetBuilderOnObservers(observers []actions.Observer)
func (*EditUserAction) SetBuilderOnTriggers ¶
func (action *EditUserAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*EditUserAction) SetBuilderOnValidators ¶
func (action *EditUserAction) SetBuilderOnValidators(validators []actions.Validator)
func (*EditUserAction) SetFirstName ¶
func (action *EditUserAction) SetFirstName(firstName string) *EditUserAction
SetFirstName sets the FirstName while editing the User ent
func (*EditUserAction) SetLastName ¶
func (action *EditUserAction) SetLastName(lastName string) *EditUserAction
SetLastName sets the LastName while editing the User ent
func (*EditUserAction) SetNilableBio ¶
func (action *EditUserAction) SetNilableBio(bio *string) *EditUserAction
SetNilableBio sets the Bio while editing the User ent
func (*EditUserAction) Validate ¶
func (action *EditUserAction) Validate() error
Validate returns an error if the current state of the action is not valid
type RemoveFamilyMemberAction ¶
type RemoveFamilyMemberAction struct {
// contains filtered or unexported fields
}
func RemoveFamilyMember ¶
func RemoveFamilyMember(v viewer.ViewerContext, user *models.User) *RemoveFamilyMemberAction
RemoveFamilyMember is the factory method to get an ...
func RemoveFamilyMemberFromContext ¶
func RemoveFamilyMemberFromContext(ctx context.Context, user *models.User) *RemoveFamilyMemberAction
RemoveFamilyMemberFromContext is the factory method to get an ...
func (*RemoveFamilyMemberAction) Entity ¶
func (action *RemoveFamilyMemberAction) Entity() ent.Entity
func (*RemoveFamilyMemberAction) ExistingEnt ¶
func (action *RemoveFamilyMemberAction) ExistingEnt() ent.Entity
func (*RemoveFamilyMemberAction) GetBuilder ¶
func (action *RemoveFamilyMemberAction) GetBuilder() ent.MutationBuilder
func (*RemoveFamilyMemberAction) GetChangeset ¶
func (action *RemoveFamilyMemberAction) GetChangeset() (ent.Changeset, error)
func (*RemoveFamilyMemberAction) GetTypedBuilder ¶
func (action *RemoveFamilyMemberAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*RemoveFamilyMemberAction) GetViewer ¶
func (action *RemoveFamilyMemberAction) GetViewer() viewer.ViewerContext
func (*RemoveFamilyMemberAction) RemoveFamilyMemberID ¶
func (action *RemoveFamilyMemberAction) RemoveFamilyMemberID(userID string) *RemoveFamilyMemberAction
RemoveFamilyMemberID removes an instance of UserID from the FamilyMembers edge while editing the User ent
func (*RemoveFamilyMemberAction) RemoveFamilyMembers ¶
func (action *RemoveFamilyMemberAction) RemoveFamilyMembers(users ...*models.User) *RemoveFamilyMemberAction
RemoveFamilyMembers removes an instance of User from the FamilyMembers edge while editing the User ent
func (*RemoveFamilyMemberAction) Save ¶
func (action *RemoveFamilyMemberAction) Save() (*models.User, error)
Save is the method called to execute this action and save change
func (*RemoveFamilyMemberAction) SetBuilderOnObservers ¶
func (action *RemoveFamilyMemberAction) SetBuilderOnObservers(observers []actions.Observer)
func (*RemoveFamilyMemberAction) SetBuilderOnTriggers ¶
func (action *RemoveFamilyMemberAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*RemoveFamilyMemberAction) SetBuilderOnValidators ¶
func (action *RemoveFamilyMemberAction) SetBuilderOnValidators(validators []actions.Validator)
func (*RemoveFamilyMemberAction) Validate ¶
func (action *RemoveFamilyMemberAction) Validate() error
Validate returns an error if the current state of the action is not valid
type RemoveFriendAction ¶
type RemoveFriendAction struct {
// contains filtered or unexported fields
}
func RemoveFriend ¶
func RemoveFriend(v viewer.ViewerContext, user *models.User) *RemoveFriendAction
RemoveFriend is the factory method to get an ...
func RemoveFriendFromContext ¶
func RemoveFriendFromContext(ctx context.Context, user *models.User) *RemoveFriendAction
RemoveFriendFromContext is the factory method to get an ...
func (*RemoveFriendAction) Entity ¶
func (action *RemoveFriendAction) Entity() ent.Entity
func (*RemoveFriendAction) ExistingEnt ¶
func (action *RemoveFriendAction) ExistingEnt() ent.Entity
func (*RemoveFriendAction) GetBuilder ¶
func (action *RemoveFriendAction) GetBuilder() ent.MutationBuilder
func (*RemoveFriendAction) GetChangeset ¶
func (action *RemoveFriendAction) GetChangeset() (ent.Changeset, error)
func (*RemoveFriendAction) GetTypedBuilder ¶
func (action *RemoveFriendAction) GetTypedBuilder() *builder.UserMutationBuilder
func (*RemoveFriendAction) GetViewer ¶
func (action *RemoveFriendAction) GetViewer() viewer.ViewerContext
func (*RemoveFriendAction) RemoveFriendID ¶
func (action *RemoveFriendAction) RemoveFriendID(userID string) *RemoveFriendAction
RemoveFriendID removes an instance of UserID from the Friends edge while editing the User ent
func (*RemoveFriendAction) RemoveFriends ¶
func (action *RemoveFriendAction) RemoveFriends(users ...*models.User) *RemoveFriendAction
RemoveFriends removes an instance of User from the Friends edge while editing the User ent
func (*RemoveFriendAction) Save ¶
func (action *RemoveFriendAction) Save() (*models.User, error)
Save is the method called to execute this action and save change
func (*RemoveFriendAction) SetBuilderOnObservers ¶
func (action *RemoveFriendAction) SetBuilderOnObservers(observers []actions.Observer)
func (*RemoveFriendAction) SetBuilderOnTriggers ¶
func (action *RemoveFriendAction) SetBuilderOnTriggers(triggers []actions.Trigger)
func (*RemoveFriendAction) SetBuilderOnValidators ¶
func (action *RemoveFriendAction) SetBuilderOnValidators(validators []actions.Validator)
func (*RemoveFriendAction) Validate ¶
func (action *RemoveFriendAction) Validate() error
Validate returns an error if the current state of the action is not valid
type UserCreateContactTrigger ¶
type UserCreateContactTrigger struct {
builder.UserMutationCallback
}
func (*UserCreateContactTrigger) GetChangeset ¶
func (trigger *UserCreateContactTrigger) GetChangeset() (ent.Changeset, error)
type UserSendWelcomeEmailObserver ¶
type UserSendWelcomeEmailObserver struct {
builder.UserMutationCallback
}
func (*UserSendWelcomeEmailObserver) Observe ¶
func (observer *UserSendWelcomeEmailObserver) Observe() error