Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNullString ¶
func NewNullString(s string) sql.NullString
Types ¶
type Member ¶
type Member struct { gorm.Model SlackUserID sql.NullString `gorm:"unique;"` DiscordUserID sql.NullString `gorm:"unique;"` IsStaff bool `gorm:"not null;default:false"` Profile Profile `gorm:"unique;not null;foreignkey:MemberID"` }
type MemberInfo ¶
func CreateMember ¶
func CreateMember(db *gorm.DB, initMember MemberInit) (bool, MemberInfo, string)
func IdentifyMember ¶
type MemberInit ¶
Click to show internal directories.
Click to hide internal directories.