Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
GitHub provider
func (*GitHub) GetProfile ¶
func (gh *GitHub) GetProfile(accessToken string) (*GitHubProfile, error)
GetProfile returns a profile for a user from GitHub
type GitHubProfile ¶
type GitHubProfile struct { ID int `json:"id"` Login string `json:"login"` Name string `json:"name"` Email string `json:"email"` TwoFactor bool `json:"two_factor_authentication"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
GitHubProfile represents a GitHub profile
Click to show internal directories.
Click to hide internal directories.