apihandler

package
v0.0.0-...-abe46e5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	STANDARD_HEADER = "application/vnd.github.v3.text-match+json"
)

Variables

This section is empty.

Functions

func Verify

func Verify(repo Repository, testRepo Repository, t *testing.T)

func VerifyItems

func VerifyItems(repos []Repository, testRepos []Repository, t *testing.T)

Types

type ApiHandler

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

func New

func New(url string) *ApiHandler

func (*ApiHandler) GetRepos

func (a *ApiHandler) GetRepos() ([]Repository, error)

type GithubResponse

type GithubResponse struct {
	Items []Repository `json:"items"`
}

func GetTestRepos

func GetTestRepos(repos ...string) GithubResponse

type Repository

type Repository struct {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	FullName    string `json:"full_name"`
	Description string `json:"description"`
	GitURL      string `json:"git_url"`
	CloneURL    string `json:"clone_url"`
	SshURL      string `json:"ssh_url"`
}

Jump to

Keyboard shortcuts

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