github

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

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

AuthService manages GitHub user authentication

func NewAuthService

func NewAuthService(host string) (a *AuthService, err error)

NewAuthService constructs a new AuthService

func (*AuthService) InitClient

func (a *AuthService) InitClient() (client *go_github.Client, err error)

InitClient initializes an AuthService instance by loading ~/.config/mcc or basic authentication

type Client

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

Client is a GitHub OAuth API wrapper

func NewClient

func NewClient(execPath string, host string) (g *Client, err error)

NewClient constructs a new Client

func (*Client) GetIssue

func (g *Client) GetIssue(issueNoRegex string) (issue *go_github.Issue, comments []*go_github.IssueComment, err error)

GetIssue requests an issue and comments by refering current branch name which includes issueID

func (*Client) Init

func (g *Client) Init() (err error)

Init initialize Client

Jump to

Keyboard shortcuts

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