githubaccount

package
v0.0.0-...-b3b36fe Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiAPIClient

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

MultiAPIClient provides access to the GitHub account

func NewClient

func NewClient(token string) (*MultiAPIClient, error)

NewClient returns an authenticated github client or an error if the authentication failed

func (*MultiAPIClient) User

func (sc *MultiAPIClient) User() (*github.User, error)

User returns the authenticated github.User

type Stats

type Stats struct {
	Login *string
}

Stats from this authenticated GitHub account

func StatsOf

func StatsOf(c client) (*Stats, error)

StatsOf uses a client collect stats of the authenticated GitHub user

Jump to

Keyboard shortcuts

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