Documentation
¶
Index ¶
- Variables
- func CalculateTotalAmount(inv models.Invoice) float64
- func GenerateInvoice(invoice models.Invoice) ([]byte, error)
- func GenerateSendInvoice(inv models.Invoice, emailData models.EmailData) error
- func GetJSON[T any](client *redis.Client, key string, dest *T) error
- func InvalidateKeys(client *redis.Client, key ...string) error
- func SendInvoiceEmail(data models.EmailData, cfg models.SMTConfig, invoicePDF []byte) error
- func SendMail(data models.EmailData) error
- func SetJSON(client *redis.Client, key string, data any, ttl time.Duration) error
- func VerifyRecaptcha(token string) error
- type RecaptchaResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctx = context.Background()
Functions ¶
func CalculateTotalAmount ¶
func GenerateSendInvoice ¶
func InvalidateKeys ¶
func SendInvoiceEmail ¶
func VerifyRecaptcha ¶
Types ¶
type RecaptchaResponse ¶
Click to show internal directories.
Click to hide internal directories.