controllers

package
v0.0.0-...-8124908 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttemptLogin

func AttemptLogin(c *gin.Context)

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

func BroadcastCampaign(c *gin.Context)

BroadcastCampaign handle request to send a mail to all customer of a campaign

func CreateAndLinkCustomer

func CreateAndLinkCustomer(c *gin.Context)

CreateAndLinkCustomer handle request to create a customer and link it to a mailing list

func CreateBusiness

func CreateBusiness(c *gin.Context)

CreateBusiness handle request to send create a new user

func CreateCampaign

func CreateCampaign(c *gin.Context)

CreateCampaign handle request to send create a new campaign

func CreateCampaignAndMailingList

func CreateCampaignAndMailingList(c *gin.Context)

CreateCampaignAndMailingList handle request to send create a new campaign and a mailing list

func CreateCustomer

func CreateCustomer(c *gin.Context)

CreateCustomer handle request to create a customer

func CreateMailingList

func CreateMailingList(c *gin.Context)

CreateMailingList handle request to send create a new mailingList

func CreateUser

func CreateUser(c *gin.Context)

CreateUser handle request to send create a new user

func GetBusiness

func GetBusiness(c *gin.Context)

GetBusiness handle request to get new business

func GetCampaign

func GetCampaign(c *gin.Context)

GetCampaign handle request to get a campaign

func GetCampaignByBusinessID

func GetCampaignByBusinessID(c *gin.Context)

GetCampaignByBusinessID handle request to get all campaigns of a business

func GetCustomer

func GetCustomer(c *gin.Context)

GetCustomer handle request to get a customer

func GetMailingList

func GetMailingList(c *gin.Context)

GetMailingList handle request to get all customers of a mailingList

func RefreshToken

func RefreshToken(c *gin.Context)

RefreshToken handle request to send a new accessToken

func UnlinkCustomerMailingList

func UnlinkCustomerMailingList(c *gin.Context)

UnlinkCustomerMailingList handle request to unlink a customer and a mailing list

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL