gh

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Interact with GitHub's api, wrapper around cli/go-gh client object.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultUrl = url.URL{
		Scheme: "https",
		Host:   "api.github.com",
		Path:   "/notifications",
	}
)

Functions

This section is empty.

Types

type Client

type Client struct {
	API api.Requestor
	// contains filtered or unexported fields
}

func NewClient

func NewClient(api api.Requestor, cache cache.RefreshReadWriter, config config.Endpoint) *Client

func (*Client) Enrich added in v0.2.7

func (c *Client) Enrich(n *notifications.Notification) error

func (*Client) Notifications

func (c *Client) Notifications() (notifications.Notifications, error)

type RetryError added in v0.2.3

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

func (RetryError) Error added in v0.2.3

func (e RetryError) Error() string

type ThreadExtra added in v0.4.9

type ThreadExtra struct {
	User    notifications.User `json:"user"`
	State   string             `json:"state"`
	HtmlUrl string             `json:"html_url"`
}

Jump to

Keyboard shortcuts

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