github

package
v0.0.0-...-934c130 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(token string, out io.Writer) *github.Client

func NewOAauth2HTTPClient

func NewOAauth2HTTPClient(githubToken string) *http.Client

Types

type CachedService

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

func NewCachedService

func NewCachedService(delegate *Service, out io.Writer) *CachedService

func (*CachedService) GetCommits

func (c *CachedService) GetCommits(ctx context.Context, since time.Time, owner string, repos ...string) ([]league.SimpleCommit, error)

type Service

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

func NewService

func NewService(client *github.Client) *Service

func (*Service) GetCommits

func (g *Service) GetCommits(ctx context.Context, since time.Time, owner string, repos ...string) ([]league.SimpleCommit, error)

Jump to

Keyboard shortcuts

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