Documentation
¶
Overview ¶
Package openhub fetches OpenHub (formerly Ohloh) developer profile data. OpenHub tracks open-source developer contributions across projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequired ¶
func AuthRequired() bool
AuthRequired returns false because OpenHub profiles are public.
Types ¶
type Account ¶
type Account struct {
ID int `xml:"id"`
Name string `xml:"name"`
Email string `xml:"email"`
AboutRaw string `xml:"about_raw"`
AvatarURL string `xml:"avatar_url"`
CountryCode string `xml:"country_code"`
Location string `xml:"location"`
Latitude string `xml:"latitude"`
Longitude string `xml:"longitude"`
URL string `xml:"url"`
HTMLURL string `xml:"html_url"`
CreatedAt string `xml:"created_at"`
UpdatedAt string `xml:"updated_at"`
HomepageURL string `xml:"homepage_url"`
TwitterAccount string `xml:"twitter_account"`
KudoRank int `xml:"kudo_rank"`
KudoScore *KudoScore `xml:"kudo_score"`
Posts *Posts `xml:"posts"`
}
Account represents an OpenHub account.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles OpenHub requests.
type KudoScore ¶
type KudoScore struct {
KudoRank int `xml:"kudo_rank"`
Position int `xml:"position"`
Created int `xml:"created"`
Received int `xml:"received"`
}
KudoScore represents kudos metrics.
type Option ¶
type Option func(*config)
Option configures a Client.
func WithAPIKey ¶
WithAPIKey sets the OpenHub API key (optional but recommended).
func WithHTTPCache ¶
WithHTTPCache sets the HTTP cache.
Click to show internal directories.
Click to hide internal directories.