Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn maintains a connection to the database.
type Exclusion ¶
type Exclusion struct { ID int64 User *User `gorm:"ForeignKey:UserID"` UserID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` ExcludedUser *User `gorm:"ForeignKey:ExcludedUserID"` ExcludedUserID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` }
Exclusion represents a desire by a user to avoid being paired with another user.
type Match ¶
type Match struct { ID int64 Pearup *Pearup `gorm:"ForeignKey:PearupID"` PearupID int64 `sql:"type:int REFERENCES pearups(id) ON DELETE CASCADE"` User1 *User `gorm:"ForeignKey:User1ID"` User1ID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` User2 *User `gorm:"ForeignKey:User2ID"` User2ID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` }
Match represents a pairing between two users.
type Pearup ¶
type Pearup struct { ID int64 Name string `gorm:"not null"` EndDate time.Time `gorm:"not null"` IsComplete bool `gorm:"not null"` IsPublic bool `gorm:"not null"` CanRequest bool `gorm:"not null" sql:"DEFAULT:FALSE"` }
Pearup represents a single pearup.
type Registration ¶
type Registration struct { ID int64 Pearup *Pearup `gorm:"ForeignKey:PearupID"` PearupID int64 `sql:"type:int REFERENCES pearups(id) ON DELETE CASCADE"` User *User `gorm:"ForeignKey:UserID"` UserID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` }
Registration represents an intent by a user to participate in a pearup.
type Request ¶
type Request struct { ID int64 User *User `gorm:"ForeignKey:UserID"` UserID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` RequestedUser *User `gorm:"ForeignKey:RequestedUserID"` RequestedUserID int64 `sql:"type:int REFERENCES users(id) ON DELETE CASCADE"` }
Request represents a desire by a user to be matched with a specific user.
type User ¶
type User struct { ID int64 // Each user authenticates with one or more of these services GoogleID string `gorm:"not null"` FacebookID string `gorm:"not null"` // This data is filled in with the most recent login method Name string `gorm:"not null"` Email string `gorm:"not null"` Picture string `gorm:"not null"` // Management data IsAdmin bool `gorm:"not null"` // Profile data Link string `gorm:"not null"` IsMale bool `gorm:"not null"` IsFemale bool `gorm:"not null"` }
User represents an authenticated Facebook user.
Click to show internal directories.
Click to hide internal directories.