github

package
v0.0.0-...-6b22332 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 3 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() *Client

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*Repository, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, login string) (*User, error)

type Error

type Error string
const NotFoundError Error = "Not Found"

func (Error) Error

func (e Error) Error() string

type Repository

type Repository struct {
	HTMLurl, CloneURL string
}

type User

type User struct {
	ID    int64
	Login string
}

Jump to

Keyboard shortcuts

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