client

package
v0.0.0-...-a9fb5d5 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	ByRepo map[string]map[int][]*ActivityEvent
	// contains filtered or unexported fields
}

func (Activity) String

func (a Activity) String() string

type ActivityEvent

type ActivityEvent struct {
	Type      ActivityType
	RepoName  string
	SubjectID int
	Subject   string
	CreatedAt time.Time
}

func (ActivityEvent) String

func (ae ActivityEvent) String() string

type ActivityType

type ActivityType int
const (
	NonInteresting ActivityType = iota
	OpenedIssue
	ClosedIssue
	CommentedIssue
	OpenedPullRequest
	ReopenedPullRequest
	EditedPullRequest
	ClosedPullRequest
	MergedPullRequest
	CommentedPullRequest
)

func (ActivityType) String

func (a ActivityType) String() string

type Client

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

func NewAuthClient

func NewAuthClient(user string, accessToken string) Client

func NewClient

func NewClient(user string) Client

func (*Client) GetActivity

func (c *Client) GetActivity(ctx context.Context, publicOnly bool, since, to *time.Time) *Activity

Jump to

Keyboard shortcuts

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