Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alcacoop/go-github-client
/ functions
Functions
68 in github.com/alcacoop/go-github-client
⨍
Functions
68
◇
Types & classes
19
↓ 16 callers
Method
NewAPIRequest
(method, url string, body io.Reader)
client/client.go:59
↓ 16 callers
Method
RunRequest
(req *http.Request, httpc *http.Client)
client/client.go:80
↓ 8 callers
Method
Json
Lazily parse body as json and return unmarshalled results.
client/result.go:80
↓ 4 callers
Function
NewGithubClient
(login string, tokenOrPassword string, authMode ghAuthModes)
client/client.go:49
↓ 4 callers
Method
getPage
(fullPageUrl string)
client/pagination.go:89
↓ 3 callers
Method
GetString
(attr string)
client/json_data.go:27
↓ 3 callers
Method
newAPIRequest
(method, url string, body io.Reader)
client/client.go:63
↓ 2 callers
Method
IsValid
TBD
issues/list.go:59
↓ 2 callers
Method
IsValid
TBD
issues/issue.go:47
↓ 2 callers
Method
IsValid
validate gists create payload
gists/gist.go:53
↓ 1 callers
Method
CreateGist
create a new gists using a given GistDataCreate struct. It returns a GithubResult and an error.
gists/gist.go:100
↓ 1 callers
Method
GetFloat
(attr string)
client/json_data.go:35
↓ 1 callers
Method
GetInt
(attr string)
client/json_data.go:39
↓ 1 callers
Method
GetNextPage
request the next page and return a new GithubResult or error (ErrNoNextPageUrl)
client/pagination.go:104
↓ 1 callers
Method
GetObject
(idx int)
client/json_data.go:69
↓ 1 callers
Method
GetPublicGistsList
Request the list of public gists It returns a GithubResult and an error.
gists/list.go:46
↓ 1 callers
Method
GetRepoIssuesList
TBD
issues/list.go:119
↓ 1 callers
Method
GetUserInfo
Request github user info about a defined username. It returns a GithubResult and an error.
users/users.go:43
↓ 1 callers
Method
HasFirstPage
returns true if the result has a first page link
client/pagination.go:70
↓ 1 callers
Method
HasLastPage
returns true if the result has a last page link
client/pagination.go:80
↓ 1 callers
Method
HasNextPage
returns true if the result has a next page
client/pagination.go:50
↓ 1 callers
Method
HasPrevPage
returns true if the result has a previous page
client/pagination.go:60
↓ 1 callers
Method
IsValid
()
client/client.go:33
↓ 1 callers
Method
UpdateGist
update an existent gists using a given gist id and GistDataCreate struct. It returns a GithubResult and an error.
gists/gist.go:127
↓ 1 callers
Function
newGithubResult
(ghc *GithubClient, resp *http.Response)
client/result.go:35
↓ 1 callers
Method
parseBody
()
client/result.go:51
↓ 1 callers
Method
parseHeader
()
client/result.go:70
↓ 1 callers
Method
parsePageUrls
(link string)
client/pagination.go:13
Method
CreateIssue
TBD
issues/issue.go:53
Method
GetArray
(attr string)
client/json_data.go:47
Method
GetArray
(idx int)
client/json_data.go:73
Method
GetAuthenticatedUserInfo
Request the current autenticated user info. It returns a GithubResult and an error.
users/users.go:27
Method
GetBool
(attr string)
client/json_data.go:31
Method
GetBool
(idx int)
client/json_data.go:57
Method
GetFirstPage
request the first page and return a new GithubResult or error (ErrNoFirstPageUrl)
client/pagination.go:122
Method
GetFloat
(idx int)
client/json_data.go:61
Method
GetGist
Request the content of a gists from a given gist id. It returns a GithubResult and an error.
gists/gist.go:22
Method
GetGistsList
Request the list of authenticated user gists (or public if used anonymously) It returns a GithubResult and an error.
gists/list.go:14
Method
GetGistsListByUser
Request the list of public gists from a given github username. It returns a GithubResult and an error.
gists/list.go:62
Method
GetInt
(idx int)
client/json_data.go:65
Method
GetIssue
Request the content of a issue from a given issue id. It returns a GithubResult and an error.
issues/issue.go:22
Method
GetLastPage
request the last page and return a new GithubResult or error (ErrNoLastPageUrl)
client/pagination.go:131
Method
GetMap
(attr string)
client/json_data.go:43
Method
GetPrevPage
request the previous page and return a new GithubResult or error (ErrNoPrevPageUrl)
client/pagination.go:113
Method
GetResourceFromUrl
TBD
client/client.go:93
Method
GetStarredGistsList
Request the list of authenticated user starred gists It returns a GithubResult and an error.
gists/list.go:30
Method
GetString
(idx int)
client/json_data.go:53
Method
GetUserIssuesList
TBD
issues/list.go:65
Method
IsPaginated
returns true if the result is paginated
client/pagination.go:39
Method
IsSuccess
tests if server response status is 200
client/result.go:47
Method
IsValid
()
issues/list.go:113
Method
IsValid
TBD
issues/issue.go:94
Method
IsValid
validate gists update payload
gists/gist.go:74
Method
JsonArray
TBD
client/result.go:101
Method
JsonMap
TBD
client/result.go:94
Function
NewGistDataCreate
create a new GistDataCreate struct
gists/gist.go:45
Function
NewGistDataUpdate
create a new GistDataUpdate struct
gists/gist.go:66
Function
NewGists
create a new github Gists client from an existent GithubClient
gists/gists.go:17
Function
NewIssues
create a new github issues client from an existent GithubClient
issues/issues.go:17
Function
NewUsers
create a new github Users client from an existent GithubClient
users/users.go:18
Function
TestCreateNewAPIRequest
(t *testing.T)
client/client_test.go:30
Function
TestGhAuthModesValidation
(t *testing.T)
client/client_test.go:12
Function
TestJsonData
(t *testing.T)
client/json_data_test.go:12
Method
UpdateIssue
TBD
issues/issue.go:100
Function
main
()
examples/gh_get_gistslist/main.go:14
Function
main
()
examples/gh_create_gist/main.go:14
Function
main
()
examples/gh_get_userinfo/main.go:14
Function
main
()
examples/gh_get_issueslist/main.go:15