Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LongHumanTime ¶
Types ¶
type Certificate ¶
type Certificate struct { SHA256 string `db:"cert_sha256"` ExpireAt int64 `db:"expire_at"` CreatedAt int64 `db:"created_at"` UpdatedAt int64 `db:"updated_at"` }
func (Certificate) GetCreatedAt ¶
func (c Certificate) GetCreatedAt() string
func (Certificate) GetExpireAt ¶
func (c Certificate) GetExpireAt() string
func (Certificate) GetSHA256 ¶
func (c Certificate) GetSHA256() string
func (Certificate) GetUpdatedAt ¶
func (c Certificate) GetUpdatedAt() string
type Password ¶
type Password struct { UserID uint64 `db:"user_id"` Argon2 string `db:"argon2"` Salt string `db:"salt"` CreatedAt int64 `db:"created_at"` UpdatedAt int64 `db:"updated_at"` }
func NewPassword ¶
type Profile ¶
type Profile struct { Avatar string `db:"users.avatar"` FirstName string `db:"users.first_name"` LastName string `db:"users.last_name"` LastSeen int64 `db:"users.last_seen"` Password sql.NullString `db:"passwords.argon2"` UserID uint64 `db:"users.id"` UserName string `db:"users.user_name"` CreatedAt int64 `db:"users.created_at"` }
type User ¶
type User struct { ID uint64 `db:"users.id"` Avatar string `db:"users.avatar"` ExpireAt int64 `db:"users.expire_at"` FirstName string `db:"users.first_name"` LastName string `db:"users.last_name"` LastSeen int64 `db:"users.last_seen"` UserName string `db:"users.user_name"` CreatedAt int64 `db:"users.created_at"` UpdatedAt int64 `db:"users.updated_at"` }
Click to show internal directories.
Click to hide internal directories.