Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBaseURL = "https://api.github.com/%s"
View Source
const DefaultCallbackURL = "http://ec2-34-212-13-136.us-west-2.compute.amazonaws.com:8088"
Variables ¶
View Source
var ( REPOS = "repos" FILE = REPOS + "/%s/contents/%s" )
View Source
var (
//"contents_url": "https://api.github.com/repos/shankj3/legis_data/contents/{+path}",
CONTENTS_URL_REPLACE = "{+path}"
)
Functions ¶
func GetGithubClient ¶
Returns VCS handler for pulling source code and auth token if exists (auth token is needed for code download)
func GetGithubFromHttpClient ¶
func GetGithubFromHttpClient(cli *http.Client) models.VCSHandler
func GetGithubHandler ¶
func GetGithubHandler(cred *pb.VCSCreds, cli ocenet.HttpClient) *githubVCS
func GetTranslator ¶
func GetTranslator() models.Translator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.