utils

package
v0.0.0-...-045cb9c Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateVerificationCode

func GenerateVerificationCode() (string, error)

Types

type BigDecimal

type BigDecimal struct {
	// contains filtered or unexported fields
}

func NewBigDecimal

func NewBigDecimal(value string) (*BigDecimal, error)

func (*BigDecimal) Add

func (bd *BigDecimal) Add(b *BigDecimal) *BigDecimal

func (*BigDecimal) Cmp

func (bd *BigDecimal) Cmp(b *BigDecimal) int

func (*BigDecimal) Div

func (bd *BigDecimal) Div(b *BigDecimal) (*BigDecimal, error)

func (*BigDecimal) Mul

func (bd *BigDecimal) Mul(b *BigDecimal) *BigDecimal

func (*BigDecimal) String

func (bd *BigDecimal) String() string

func (*BigDecimal) Sub

func (bd *BigDecimal) Sub(b *BigDecimal) *BigDecimal

func (*BigDecimal) Value

func (bd *BigDecimal) Value() *apd.Decimal

Getter method for value

type MailService

type MailService struct {
	// contains filtered or unexported fields
}

func NewMailService

func NewMailService(smtpServer, username, password string, port int) *MailService

func (*MailService) SendDepositNotification

func (s *MailService) SendDepositNotification(toEmail string, amount string) error

func (*MailService) SendEmail

func (s *MailService) SendEmail(to, subject, body string) error

func (*MailService) SendLoginEmail

func (s *MailService) SendLoginEmail(to, code string) error

func (*MailService) SendTransferNotification

func (s *MailService) SendTransferNotification(fromEmail, toEmail string, amount string) error

func (*MailService) SendVerificationEmail

func (s *MailService) SendVerificationEmail(to, code string) error

func (*MailService) SendWithdrawalNotification

func (s *MailService) SendWithdrawalNotification(toEmail string, amount string) error

Jump to

Keyboard shortcuts

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