Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type Identity ¶
type Identity struct { PublicKey string `gorm:"primary_key;size:64"` // ed25519 public key UserID uuid.UUID `gorm:"not null"` // User UUID (User foreign key) Activated int64 `gorm:"not null"` // UNIX timestamp of activation Deactivated int64 `gorm:"not null"` // UNIX timestamp of deactivation }
Identity represents a user identity.
type User ¶
type User struct { ID uuid.UUID `gorm:"primary_key"` // UUID Username string `gorm:"not null;unique"` // Unique username Identities []Identity `gorm:"foreignkey:UserID"` // User identity history Blob []byte `gorm:"not null"` // Encrypted blob of user data // Set by gorm CreatedAt time.Time // Time of record creation UpdatedAt time.Time // Time of last record update }
User represents a politeiawww user. Blog is an encrypted blob of the full user object.
Click to show internal directories.
Click to hide internal directories.