models

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2019 License: NCSA Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminRole     = "Admin"
	StaffRole     = "Staff"
	MentorRole    = "Mentor"
	ApplicantRole = "Applicant"
	AttendeeRole  = "Attendee"
	UserRole      = "User"
	SponsorRole   = "Sponsor"
)

Variables

Functions

This section is empty.

Types

type GithubEmail

type GithubEmail struct {
	Email      string `json:"email"`
	IsPrimary  bool   `json:"primary"`
	IsVerified bool   `json:"verified"`
}

type GithubOauthToken

type GithubOauthToken struct {
	Token string `json:"access_token"`
	Type  string `json:"token_type"`
	Scope string `json:"scope"`
}

type GithubUserInfo

type GithubUserInfo struct {
	Username string `json:"login"`
	ID       int    `json:"id"`
	Name     string `json:"name"`
}

type GoogleOauthToken

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

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

type LinkedinOauthToken struct {
	Token    string `json:"access_token"`
	Lifetime int    `json:"expires_in"`
}

type LinkedinUserInfo

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

type OauthCode struct {
	Code string `json:"code"`
}

type Role

type Role = string

type Token

type Token struct {
	Token string `json:"token"`
}

type UserInfo

type UserInfo struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
}

type UserList added in v0.4.0

type UserList struct {
	UserIDs []string `json:"userIds"`
}

type UserRoleList added in v0.4.0

type UserRoleList struct {
	Roles []Role `json:"roles"`
}

type UserRoleModification

type UserRoleModification struct {
	ID   string `json:"id"`
	Role string `json:"role"`
}

type UserRoles

type UserRoles struct {
	ID    string   `bson:"id"    json:"id"`
	Roles []string `bson:"roles" json:"roles"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL