package
0.0.0-20160721150600-68900edcface
Repository: https://github.com/gopheracademy/congo.git
Documentation: pkg.go.dev
# Functions
EventFilterByTenant is a gorm filter for a Belongs To relationship.
EventFromCreateEventPayload Converts source CreateEventPayload to target Event model only copying the non-nil fields from the source.
EventFromUpdateEventPayload Converts source UpdateEventPayload to target Event model only copying the non-nil fields from the source.
NewEventDB creates a new storage type.
NewPresentationDB creates a new storage type.
NewSeriesDB creates a new storage type.
NewSpeakerDB creates a new storage type.
NewTenantDB creates a new storage type.
NewUserDB creates a new storage type.
PresentationFilterByEvent is a gorm filter for a Belongs To relationship.
PresentationFilterBySpeaker is a gorm filter for a Belongs To relationship.
PresentationFromCreatePresentationPayload Converts source CreatePresentationPayload to target Presentation model only copying the non-nil fields from the source.
PresentationFromUpdatePresentationPayload Converts source UpdatePresentationPayload to target Presentation model only copying the non-nil fields from the source.
SeriesFilterByTenant is a gorm filter for a Belongs To relationship.
SeriesFromCreateSeriesPayload Converts source CreateSeriesPayload to target Series model only copying the non-nil fields from the source.
SeriesFromUpdateSeriesPayload Converts source UpdateSeriesPayload to target Series model only copying the non-nil fields from the source.
SpeakerFilterByEvent is a gorm filter for a Belongs To relationship.
SpeakerFromCreateSpeakerPayload Converts source CreateSpeakerPayload to target Speaker model only copying the non-nil fields from the source.
SpeakerFromUpdateSpeakerPayload Converts source UpdateSpeakerPayload to target Speaker model only copying the non-nil fields from the source.
TenantFromCreateTenantPayload Converts source CreateTenantPayload to target Tenant model only copying the non-nil fields from the source.
TenantFromUpdateTenantPayload Converts source UpdateTenantPayload to target Tenant model only copying the non-nil fields from the source.
UserFilterByTenant is a gorm filter for a Belongs To relationship.
UserFromCreateAdminuserPayload Converts source CreateAdminuserPayload to target User model only copying the non-nil fields from the source.
UserFromCreateUserPayload Converts source CreateUserPayload to target User model only copying the non-nil fields from the source.
UserFromUpdateAdminuserPayload Converts source UpdateAdminuserPayload to target User model only copying the non-nil fields from the source.
UserFromUpdateUserPayload Converts source UpdateUserPayload to target User model only copying the non-nil fields from the source.
# Structs
This is the Event model.
EventDB is the implementation of the storage interface for Event.
func (u *User) AfterCreate() error {
if *u.Validated {
return nil
}
go u.ValidationEmail()
return nil
}
*/
func (u *User) ValidationEmail() error {
sg := sendgrid.NewSendGridClientWithApiKey("")
message := sendgrid.NewMail()
message.AddTo(u.Email)
message.AddToName(u.FirstName + " " + u.LastName)
message.SetSubject("Validate your account")
msg := fmt.Sprintf("<html><body>Welcome.<br/><br/>Please click <a href='<validationurl>validaate_email?u=%d&validation=%s'>here</a> to validate your account.</body></html>", u.ID, *u.ValidationCode)
message.SetHTML(msg)
message.SetFrom(supportEmail)
r := sg.Send(message)
return r
}
*/.
This is the presentation model.
PresentationDB is the implementation of the storage interface for Presentation.
This is the Series model.
SeriesDB is the implementation of the storage interface for Series.
This is the Speaker model.
SpeakerDB is the implementation of the storage interface for Speaker.
This is the Tenant model.
TenantDB is the implementation of the storage interface for Tenant.
This is the User model.
UserDB is the implementation of the storage interface for User.
# Interfaces
EventStorage represents the storage interface.
PresentationStorage represents the storage interface.
SeriesStorage represents the storage interface.
SpeakerStorage represents the storage interface.
TenantStorage represents the storage interface.
UserStorage represents the storage interface.