system

package module
v0.0.0-...-78a187b Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLoginCode

func GenerateLoginCode(userID string) (string, error)

func ReadFile

func ReadFile(path string) ([]byte, error)

func SendEmail

func SendEmail(toAddress, toName, subject, textMessage, htmlMessage string) error

func SendSMS

func SendSMS(to, message string) error

func WriteFile

func WriteFile(path string, b []byte) error

Types

type User

type User struct {
	ID        string `json:"id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Phone     string `json:"phone"`
	Email     string `json:"email"`
}

func GetUser

func GetUser(id string) (*User, error)

func GetUserByEmail

func GetUserByEmail(email string) (*User, error)

func GetUserByPhone

func GetUserByPhone(phone string) (*User, error)

func (*User) FullName

func (u *User) FullName() string

func (*User) SendEmail

func (u *User) SendEmail(subject, message string) error

func (*User) SendSMS

func (u *User) SendSMS(message string) error

Jump to

Keyboard shortcuts

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