Documentation ¶
Index ¶
- Variables
- func BadRequest(c *gin.Context, msg string)
- func CheckUUN(c *gin.Context, uun string) (success bool)
- func IsMealValid(starter, main, dessert string) bool
- func IsOneOf(one string, other ...string) bool
- func SendTicketEmail(c *gin.Context, mailgun mailgun.Mailgun, ...) (_ bool)
- func StripeError(err error) string
- type API
- type EmailStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var Email *template.Template = template.Must(template.ParseFiles("email.html"))
Functions ¶
func BadRequest ¶
func IsMealValid ¶
func SendTicketEmail ¶
func StripeError ¶
Types ¶
type API ¶
type API struct { Config *config.Config Log *logrus.Logger Gin *gin.Engine Stripe *client.API Mailgun mailgun.Mailgun Server *http.Server }
API contains all the dependencies of the API server
type EmailStruct ¶
Click to show internal directories.
Click to hide internal directories.