githubapi

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubApi

type GithubApi interface {
	FetchOrgInformation(url string) (*either.Either[*GithubOrgReposResponse, *GithubOrgReposErrorResponse], error)
}

type GithubClient

type GithubClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *http.Client, personalAccessToken string) *GithubClient

func (*GithubClient) FetchOrgInformation

func (c *GithubClient) FetchOrgInformation(urlString string) (out *either.Either[*GithubOrgReposResponse, *GithubOrgReposErrorResponse], err error)

type GithubOrgReposErrorResponse

type GithubOrgReposErrorResponse struct {
	Message          string `json:"message"`
	DocumentationURL string `json:"documentation_url"`
}

type GithubOrgReposResponse

type GithubOrgReposResponse []GithubOrgReposResponseItem

type GithubOrgReposResponseItem

type GithubOrgReposResponseItem struct {
	Identifier int    `json:"id"`
	Name       string `json:"name"`
	FullName   string `json:"full_name"`
	GitUrl     string `json:"git_url"`
	HtmlUrl    string `json:"html_url"`
	SshUrl     string `json:"ssh_url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL