Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowId ¶
type FlowId struct {
FlowIdType FlowIdType `sql:"flow_id_type"`
UserId string
FlowId string `gorm:"primary_key"`
RelatedRoleId string
WalletAddress string
}
TODO: Make relations for field `relatedRoleId`
type FlowIdType ¶
type FlowIdType string
const ( AUTH FlowIdType = "AUTH" ROLE FlowIdType = "ROLE" )
func (*FlowIdType) Scan ¶
func (fit *FlowIdType) Scan(value interface{}) error
type Sotreus ¶
type Sotreus struct {
Name string `gorm:"primary_key" json:"name"`
WalletAddress string `json:"walletAddress"`
UserId string `json:"userId,omitempty"`
Region string `json:"region"`
VpnEndpoint string `json:"VpnEndpoint"`
FirewallEndpoint string `json:"firewallEndpoint"`
Password string `json:"password"`
Firewall string `json:"firewall"`
}
type Subscription ¶
type TStripePiType ¶
type TStripePiType string
var SotreusSubscription TStripePiType = "SotreusSubscription"
type User ¶
type User struct {
UserId string `gorm:"primary_key" json:"userId,omitempty"`
Name string `json:"name,omitempty"`
WalletAddress *string `json:"walletAddress,omitempty"`
Discord string `json:"discord"`
Twitter string `json:"twitter"`
FlowIds []FlowId `gorm:"foreignkey:UserId" json:"-"`
ProfilePictureUrl string `json:"profilePictureUrl,omitempty"`
Country string `json:"country,omitempty"`
EmailId *string `json:"emailId,omitempty"`
}
type UserStripePi ¶
Click to show internal directories.
Click to hide internal directories.