Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package api implements functions for github aggregator rest api.
Index ¶
- Constants
 - func Auth(rw http.ResponseWriter, req *http.Request)
 - func Logout(rw http.ResponseWriter, req *http.Request)
 - func Orgs(rw http.ResponseWriter, req *http.Request)
 - func Profile(rw http.ResponseWriter, req *http.Request)
 - func PullRequests(rw http.ResponseWriter, req *http.Request)
 - func Scopes(rw http.ResponseWriter, req *http.Request)
 
Constants ¶
      View Source
      
  
    const ( // OAUTH2_HEADER key for Oauth token in request header. OAUTH2_HEADER = "Authorization" // OAUTH2_PREFIX prefix for Oauth token. OAUTH2_PREFIX = "Bearer " // AUTH_URL url to get token auth status. AUTH_URL = "https://api.github.com/user" // ACCESS_TOKEN key for access token value. ACCESS_TOKEN = "access_token" )
      View Source
      
  
const ( // FILTER_PARAM pulls filter param. FILTER_PARAM = "filter" // ORGS_CHOICE_PARAM param for chosen orgs. ORGS_CHOICE_PARAM = "orgs_choice" // ALL filter type for pulls assigned or review requested to user. ALL = "all" // ASSIGNEE filter type for pulls assigned to user. ASSIGNEE = "assignee" // REVIEWER type for pulls review requested to user. REVIEWER = "reviewer" // OPEN type for open pulls. OPEN = "open" )
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(rw http.ResponseWriter, req *http.Request)
Auth authenticates user with provided Github API access token.
func Orgs ¶
func Orgs(rw http.ResponseWriter, req *http.Request)
Orgs returns response with current organizations info in json format.
func Profile ¶
func Profile(rw http.ResponseWriter, req *http.Request)
Profile returns response with current profile info in json format.
func PullRequests ¶ added in v0.2.2
func PullRequests(rw http.ResponseWriter, req *http.Request)
PullRequests returns response with pull requests for chosen filter.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.