github

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(token string, opts ...Option) (*Client, error)

func (*Client) ListStarredRepos

func (c *Client) ListStarredRepos(ctx context.Context, username string, from time.Time, interval time.Duration) ([]*Repo, error)

type Option added in v0.2.0

type Option func(*Client)

func WithLogger added in v0.2.0

func WithLogger(l *zap.Logger) Option

type Repo

type Repo struct {
	Name          string
	Owner         string
	URL           string
	Description   string
	OwnerImageURL string
	StarredAt     time.Time
}

func (*Repo) String

func (r *Repo) String() string

Jump to

Keyboard shortcuts

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