package
Version:
v0.0.0-...-836e728
Opens a new window with list of versions in this module.
Published: Oct 6, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package user provides model and methods for storing and retriving user identified by wallet address
Add adds user with given wallet address to database
type User struct {
WalletAddress string `json:"-" gorm:"primaryKey;not null"`
FlowId []flowid.FlowId `gorm:"foreignkey:WalletAddress" json:"-"`
}
CustodialUser custodial user model with wallet address and one to many relation with FlowId
Get returns user with given wallet address from database
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.