package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jan 11, 2019
License: NCSA
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
AdminRole = "Admin"
StaffRole = "Staff"
MentorRole = "Mentor"
ApplicantRole = "Applicant"
AttendeeRole = "Attendee"
UserRole = "User"
)
type GithubEmail struct {
Email string `json:"email"`
IsPrimary bool `json:"primary"`
IsVerified bool `json:"verified"`
}
type GithubOauthToken struct {
Token string `json:"access_token"`
Type string `json:"token_type"`
Scope string `json:"scope"`
}
type GithubUserInfo struct {
Username string `json:"login"`
ID int `json:"id"`
Name string `json:"name"`
}
type GoogleOauthToken struct {
Token string `json:"access_token"`
Type string `json:"token_type"`
Lifetime int `json:"expires_in"`
IDToken string `json:"id_token"`
}
type GoogleUserInfo struct {
ID string `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
FirstName string `json:"given_name"`
LastName string `json:"family_name"`
IsVerified bool `json:"verified_email"`
}
type LinkedinOauthToken struct {
Token string `json:"access_token"`
Lifetime int `json:"expires_in"`
}
type LinkedinUserInfo struct {
ID string `json:"id"`
Username string `json:"formattedName"`
Email string `json:"emailAddress"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
}
type OauthCode struct {
Code string `json:"code"`
}
type Token struct {
Token string `json:"token"`
}
type UserInfo struct {
ID string `json:"id"`
Username string `json:"username"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
}
type UserRoleModification struct {
ID string `json:"id"`
Role string `json:"role"`
}
type UserRoles struct {
ID string `bson:"id" json:"id"`
Roles []string `bson:"roles" json:"roles"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.