Documentation ¶
Index ¶
- func AttemptLogin(c *gin.Context)
- func AuthMiddleware() gin.HandlerFunc
- func BroadcastCampaign(c *gin.Context)
- func CreateAndLinkCustomer(c *gin.Context)
- func CreateBusiness(c *gin.Context)
- func CreateCampaign(c *gin.Context)
- func CreateCampaignAndMailingList(c *gin.Context)
- func CreateCustomer(c *gin.Context)
- func CreateMailingList(c *gin.Context)
- func CreateUser(c *gin.Context)
- func GetBusiness(c *gin.Context)
- func GetCampaign(c *gin.Context)
- func GetCampaignByBusinessID(c *gin.Context)
- func GetCustomer(c *gin.Context)
- func GetMailingList(c *gin.Context)
- func RefreshToken(c *gin.Context)
- func UnlinkCustomerMailingList(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttemptLogin ¶
AttemptLogin handle request to send an accessToken for a given user
func AuthMiddleware ¶
func AuthMiddleware() gin.HandlerFunc
AuthMiddleware Verify the token is valid for secured routes
func BroadcastCampaign ¶
BroadcastCampaign handle request to send a mail to all customer of a campaign
func CreateAndLinkCustomer ¶
CreateAndLinkCustomer handle request to create a customer and link it to a mailing list
func CreateBusiness ¶
CreateBusiness handle request to send create a new user
func CreateCampaign ¶
CreateCampaign handle request to send create a new campaign
func CreateCampaignAndMailingList ¶
CreateCampaignAndMailingList handle request to send create a new campaign and a mailing list
func CreateCustomer ¶
CreateCustomer handle request to create a customer
func CreateMailingList ¶
CreateMailingList handle request to send create a new mailingList
func CreateUser ¶
CreateUser handle request to send create a new user
func GetCampaignByBusinessID ¶
GetCampaignByBusinessID handle request to get all campaigns of a business
func GetMailingList ¶
GetMailingList handle request to get all customers of a mailingList
func RefreshToken ¶
RefreshToken handle request to send a new accessToken
func UnlinkCustomerMailingList ¶
UnlinkCustomerMailingList handle request to unlink a customer and a mailing list
Types ¶
This section is empty.