Documentation
¶
Index ¶
- func GenerateAnonID(phoneNo string) string
- func HashPassword(password string) (string, error)
- func HealthStatusValueIsAllowed(risk float64) bool
- func LoadEnv(path string)
- func LoadEnvFromPath(dirPath string)
- func MatchesWithHash(password, hash string) bool
- func SendNotification(fcmKey string, regToken string, n map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAnonID ¶
GenerateAnonID takes a phone number and generates an ID thats almost guaranteed to be unique.
func HashPassword ¶
HashPassword takes plaintext password as input and returns its hashed value.
func HealthStatusValueIsAllowed ¶
HealthStatusValueIsAllowed is a utility function to check if a particular value of risk given by user is allowed.
func LoadEnv ¶
func LoadEnv(path string)
LoadEnv takes the path of a .env file and uses it to set environment variables
func LoadEnvFromPath ¶
func LoadEnvFromPath(dirPath string)
LoadEnvFromPath will load the environment variables
func MatchesWithHash ¶
MatchesWithHash returns true if password matches with hash.
func SendNotification ¶
SendNotification sends a notification to a user with a given firebase regToken
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.