github

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubMock

type GitHubMock struct {
	Token       string
	Repository  string
	PullRequest PullRequest
}

func NewMock

func NewMock(token string, repository string, id int, number int, title string) GitHubMock

func (*GitHubMock) Handler

func (m *GitHubMock) Handler(w http.ResponseWriter, r *http.Request)

type HTTPError

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

type PullRequest

type PullRequest struct {
	ID       int
	Number   int
	URL      string
	HTML_URL string
	IssueURL string
	Title    string
	Body     string
}

Jump to

Keyboard shortcuts

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