Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccessLevelBasic = "basic" AccessLevelAdmin = "admin" )
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { // CreateUser creates a new user. CreateUser(user *User) error // UpdateUserPhotoURL updates user's photo URL. UpdateUserPhotoURL(userID, photoURL string) error // GetUserByID finds a user by user ID. GetUserByID(ID string) (User, error) // GetUserByEmail finds a user by user email. GetUserByEmail(email string) (User, error) }
type User ¶
type User struct { ID string `json:"id"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Phone string `json:"phone"` DOB *time.Time `json:"dob"` VerifiedEmail bool `json:"verifiedEmail"` AccessLevel string `json:"accessLevel"` PhotoURL string `json:"photoURL"` }
Click to show internal directories.
Click to hide internal directories.