Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Gin *gin.Engine TwilioClient *twilio.Twilio DB *sql.DB // contains filtered or unexported fields }
API represents a API config object
type Config ¶
type Config struct { TwilioSID string TwilioToken string JWTSecret []byte WhatsAppFrom string WebHookAccount gin.Accounts VerifyTmpl, NotifTmpl *template.Template }
Config represents a configuration object for this API
type Group ¶
type Group struct { ID int `json:"id"` Name string `json:"name"` UserID int `json:"userID"` WhatsAppNodes []WhatsAppNode `json:"whatsappNodes"` }
Group represents a group of nodes
type Notification ¶
type Notification struct { ID int `json:"id"` UserID int `json:"userID"` GroupID int `json:"groupID"` Body string `json:"body"` TimeSt string `json:"timeSt"` GroupName string `json:"groupName"` }
Notification represent a single message object
type Number ¶
type Number struct { ID int `json:"id"` UserID int `json:"userID"` Phone string `json:"phone"` Groups int `json:"groups"` Verified bool `json:"verified"` }
Number models the numbers table in database
type VerifyUser ¶
VerifyUser Models the verifyUser table
Click to show internal directories.
Click to hide internal directories.