Documentation ¶
Index ¶
Constants ¶
View Source
const ( New = iota Pending Approved Suspended Banned )
Different user statuses
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` UserID bson.ObjectId `bson:"userId" json:"userId"` IsSetupTrackerEnabled bool `bson:"isSetupTrackerEnabled" json:"isSetupTrackerEnabled"` IsWelcomeDialogEnabled bool `bson:"isWelcomeDialogEnabled" json:"isWelcomeDialogEnabled"` }
func DefaultSettings ¶
type User ¶
type User struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` MeritAddress string `bson:"address"` MeritAlias string `bson:"alias"` PublicKey string `bson:"publicKey"` Status int `bson:"status"` // maps to the iota above Verified bool `bson:"verified"` Rating float32 `bson:"rating"` }
User is a basic model that maps a user in the market to the Merit blockchain
Click to show internal directories.
Click to hide internal directories.