config

package
v0.0.0-...-0f6690b Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB
View Source
var EmailBloomFilter *bloom.BloomFilter

Functions

func AddEmailToBloom

func AddEmailToBloom(email string)

Add email to Bloom Filter

func CheckEmailInBloom

func CheckEmailInBloom(email string) bool

Check if email might exist in Bloom Filter

func Cloudinary

func Cloudinary(file multipart.File) (string, error)

func DBConnect

func DBConnect()

func DBDisconnect

func DBDisconnect()

func InitBloomFilter

func InitBloomFilter(size uint, falsePositiveRate float64)

Initialize Bloom Filter size: number of expected items to be added to the filter falsePositiveRate: acceptable false positive rate (between 0 and 1)

func Mailer

func Mailer(toEmail string, otp string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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