Documentation ¶
Overview ¶
Package user provides model, methods and hooks to manage user data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustodialUser ¶
type CustodialUser struct { Id string `json:"-" gorm:"primaryKey;not null"` Mnemonic string `json:"-" gorm:"unique;not null"` }
CustodialUser custodial user model with id and mnemonic
func (*CustodialUser) AfterFind ¶
func (u *CustodialUser) AfterFind(tx *gorm.DB) (err error)
AfterFind decodes the mnemonic from hexadecimal after finding it from database
func (*CustodialUser) BeforeSave ¶
func (u *CustodialUser) BeforeSave(tx *gorm.DB) (err error)
BeforeSave encodes the mnemonic in hexadecimal before saving it into database
Directories ¶
Path | Synopsis |
---|---|
Package usermethods provides core methods for user logic
|
Package usermethods provides core methods for user logic |
Click to show internal directories.
Click to hide internal directories.