Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ID uuid.UUID `gorm:"type:uuid;primary_key"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
Base : gorm.Model definition
type Email ¶
type Email struct { gorm.Model Status string `grom:"type:varchar(32);not null"` TemplateID string `grom:"type:varchar(256)"` ToEmai string `grom:"type:varchar(256);not null"` FromEmail string `grom:"type:varchar(256);not null"` ToName string `grom:"type:varchar(256);not null"` FromName string `grom:"type:varchar(256);not null"` Subject string `grom:"type:varchar(256)"` Message string `grom:"type:varchar"` DynamicData *map[string]string `grom:"type:json"` }
Email : Base with injected fields `ID`, `CreatedAt`, `UpdatedAt`
func (Email) SendSendgridEmail ¶
SendSendgridEmail : sends a email
type Response ¶
type Response struct { Status string // contains filtered or unexported fields }
Response : sample request response
type SMS ¶
type SMS struct { gorm.Model Status string `grom:"type:varchar(32);not null"` ToNumber string `grom:"type:varchar(256);not null"` FromNumber string `grom:"type:varchar(256);not null"` Message string `grom:"type:varchar(256);not null"` TwilioID string `grom:"type:varchar(256)"` }
SMS : Base with injected fields `ID`, `CreatedAt`, `UpdatedAt`
Click to show internal directories.
Click to hide internal directories.