Documentation
¶
Overview ¶
Package model defines the data types aka the data model used within GoZer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { // Non-optional attributes Id int64 GUID string HashedSecret string // Optional attributes OrcId string }
User encapsulates all identity-related information about a user. That includes the public GUID, the internal database ID, the ORCiD identifier and the hashed secret.
func NewUserWithSecret ¶
NewUserWithSecret takes a user-defined secret and creates a new user object with a fresh GUID and the hashed version of the secret.
Click to show internal directories.
Click to hide internal directories.