Documentation
¶
Index ¶
- Variables
- func DecryptAES(encryptedStr string, key []byte) ([]byte, error)
- func EncryptAES(plaintext []byte, key []byte) (string, error)
- func GenerateInvoice(bountyID, claimID uint) error
- func GetNextInvoiceNumber(year int, month time.Month) string
- func RandomString(n uint) (string, error)
- func SendDiscordMessage(channel string, message string) error
- func SendEmail(to, subject, content string) error
- func SendInvoiceEmail(data EmailInvoiceData, pdfPath string) error
- type EmailInvoiceData
- type InvoiceData
Constants ¶
This section is empty.
Variables ¶
View Source
var MailTemplate = `` /* 2684-byte string literal not displayed */
Functions ¶
func DecryptAES ¶
DecryptAES decrypts base64 encoded string using AES-GCM
func EncryptAES ¶
EncryptAES encrypts data using AES-GCM and returns base64 encoded string
func GenerateInvoice ¶
func RandomString ¶
Generates a random verification for an ad
func SendDiscordMessage ¶
func SendInvoiceEmail ¶
func SendInvoiceEmail(data EmailInvoiceData, pdfPath string) error
Types ¶
type EmailInvoiceData ¶
Click to show internal directories.
Click to hide internal directories.