Documentation ¶
Index ¶
- func AddFamilyMember(t *testing.T, user1, user2 *models.User)
- func AllowOneInlinePrivacyPolicy(p ent.PrivacyPolicyRule) privacy.InlinePrivacyPolicy
- func AllowOneRule(p ent.PrivacyPolicyRule) []ent.PrivacyPolicyRule
- func AssertEmailSent(t *testing.T, emailAddress string, emailText string)
- func AssertEntLogged(t *testing.T, ent ent.Entity)
- func CreateEdge(t *testing.T, edge *ent.AssocEdgeData)
- func CreateTestAddress(t *testing.T, residentNames []string) *models.Address
- func CreateTestContact(t *testing.T, user *models.User, allowList ...*models.User) *models.Contact
- func CreateTestEvent(t *testing.T, user *models.User, invitedUsers ...*models.User) *models.Event
- func CreateTestUser(t *testing.T) *models.User
- func CreateTestUserWithEmail(t *testing.T, email string) *models.User
- func DefaultCompilerOptions() string
- func DenyOneInlinePrivacyPolicy(p ent.PrivacyPolicyRule) privacy.InlinePrivacyPolicy
- func DenyOneRule(p ent.PrivacyPolicyRule) []ent.PrivacyPolicyRule
- func EditContact(t *testing.T, contact *models.Contact, fields map[string]interface{}) *models.Contact
- func EditEdge(t *testing.T, edge *ent.AssocEdgeData)
- func EditEvent(t *testing.T, event *models.Event, fields map[string]interface{}) *models.Event
- func EditUser(t *testing.T, user *models.User, fields map[string]interface{}) *models.User
- func GetAddressBuilder(operation ent.WriteOperation, existingEnt ent.Entity) *actions.EntMutationBuilder
- func GetBaseBuilder(operation ent.WriteOperation, loader ent.Loader, existingEnt ent.Entity) *actions.EntMutationBuilder
- func GetContactBuilder(operation ent.WriteOperation, existingEnt ent.Entity) *actions.EntMutationBuilder
- func GetDefaultEventFields(user *models.User) map[string]interface{}
- func GetDefaultEventFieldsUserID(userID string) map[string]interface{}
- func GetDefaultUserBuilder(email string) *actions.EntMutationBuilder
- func GetEventBuilder(operation ent.WriteOperation, existingEnt ent.Entity) *actions.EntMutationBuilder
- func GetEventBuilderwithFields(operation ent.WriteOperation, existingEnt ent.Entity, ...) *actions.EntMutationBuilder
- func GetUserBuilder(operation ent.WriteOperation, existingEnt ent.Entity) *actions.EntMutationBuilder
- func GetUserBuilderWithFields(operation ent.WriteOperation, existingEnt ent.Entity, ...) *actions.EntMutationBuilder
- func SaveAddress(t *testing.T, b ent.MutationBuilder) *models.Address
- func SaveBuilder(t *testing.T, b ent.MutationBuilder)
- func SaveContact(t *testing.T, b ent.MutationBuilder) *models.Contact
- func SaveEvent(t *testing.T, b ent.MutationBuilder) *models.Event
- func SaveUser(t *testing.T, b ent.MutationBuilder) *models.User
- func VerifyEdge(t *testing.T, expectedEdge, edge *ent.AssocEdge)
- func VerifyEventObj(t *testing.T, event *models.Event, user *models.User)
- func VerifyEventToCreatorEdge(t *testing.T, event *models.Event, user *models.User)
- func VerifyEventToHostEdge(t *testing.T, event *models.Event, user *models.User)
- func VerifyFamilyEdge(t *testing.T, user, user2 *models.User)
- func VerifyFriendsEdge(t *testing.T, user, user2 *models.User)
- func VerifyInvitedToEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyNoFamilyEdge(t *testing.T, user, user2 *models.User)
- func VerifyNoFriendsEdge(t *testing.T, user, user2 *models.User)
- func VerifyNoInvitedToEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyNoUserAttendingEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyNoUserDeclinedEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyNoUserToEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyUserAttendingEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyUserDeclinedEventEdge(t *testing.T, user *models.User, event *models.Event)
- func VerifyUserObj(t *testing.T, user *models.User, email string)
- func VerifyUserToEventEdge(t *testing.T, user *models.User, event *models.Event)
- type ActionLoggerObserver
- type SendEmailHandler
- type SendMicroserviceObserver
- type Suite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowOneInlinePrivacyPolicy ¶
func AllowOneInlinePrivacyPolicy(p ent.PrivacyPolicyRule) privacy.InlinePrivacyPolicy
AllowOneInlinePrivacyPolicy wraps AllowOneRule() by an InlinePrivacyPolicy
func AllowOneRule ¶
func AllowOneRule(p ent.PrivacyPolicyRule) []ent.PrivacyPolicyRule
AllowOneRule sandwiches the given rule between an AllowIfOmniscientRule and an AlwaysDenyRule
func CreateEdge ¶
func CreateEdge(t *testing.T, edge *ent.AssocEdgeData)
func CreateTestAddress ¶
func CreateTestContact ¶
func CreateTestEvent ¶
func CreateTestUserWithEmail ¶
func DefaultCompilerOptions ¶
func DefaultCompilerOptions() string
func DenyOneInlinePrivacyPolicy ¶
func DenyOneInlinePrivacyPolicy(p ent.PrivacyPolicyRule) privacy.InlinePrivacyPolicy
DenyOneInlinePrivacyPolicy wraps DenyOneRule() by an InlinePrivacyPolicy
func DenyOneRule ¶
func DenyOneRule(p ent.PrivacyPolicyRule) []ent.PrivacyPolicyRule
DenyOneRule sandwiches the given rule between an AllowIfOmniscientRule and an AlwaysDenyRule
func EditContact ¶
func GetAddressBuilder ¶
func GetAddressBuilder( operation ent.WriteOperation, existingEnt ent.Entity, ) *actions.EntMutationBuilder
func GetBaseBuilder ¶
func GetBaseBuilder( operation ent.WriteOperation, loader ent.Loader, existingEnt ent.Entity, ) *actions.EntMutationBuilder
func GetContactBuilder ¶
func GetContactBuilder( operation ent.WriteOperation, existingEnt ent.Entity, ) *actions.EntMutationBuilder
func GetDefaultEventFields ¶
func GetDefaultUserBuilder ¶
func GetDefaultUserBuilder(email string) *actions.EntMutationBuilder
func GetEventBuilder ¶
func GetEventBuilder( operation ent.WriteOperation, existingEnt ent.Entity, ) *actions.EntMutationBuilder
func GetEventBuilderwithFields ¶
func GetEventBuilderwithFields( operation ent.WriteOperation, existingEnt ent.Entity, fields map[string]interface{}, ) *actions.EntMutationBuilder
func GetUserBuilder ¶
func GetUserBuilder( operation ent.WriteOperation, existingEnt ent.Entity, ) *actions.EntMutationBuilder
func GetUserBuilderWithFields ¶
func GetUserBuilderWithFields( operation ent.WriteOperation, existingEnt ent.Entity, fields map[string]interface{}, ) *actions.EntMutationBuilder
func SaveAddress ¶
func SaveBuilder ¶
func SaveBuilder(t *testing.T, b ent.MutationBuilder)
func SaveContact ¶
func VerifyEventToHostEdge ¶
func VerifyNoUserToEventEdge ¶
Types ¶
type ActionLoggerObserver ¶
This is reusable across ent types
func (*ActionLoggerObserver) Observe ¶
func (observer *ActionLoggerObserver) Observe() error
type SendEmailHandler ¶
func (*SendEmailHandler) SendEmail ¶
func (s *SendEmailHandler) SendEmail() error
type SendMicroserviceObserver ¶
type SendMicroserviceObserver struct { }
boo microserv
func (SendMicroserviceObserver) Observe ¶
func (SendMicroserviceObserver) Observe() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.