githubclient

package
v0.0.0-...-39763c8 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 6 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 {
	*github.Client
	// contains filtered or unexported fields
}

Client is a wrapped Discord client.

func New

func New(cfg Config) *Client

func (*Client) EventByID

func (c *Client) EventByID(eventID int64) (*github.Event, error)

func (*Client) WithContext

func (c *Client) WithContext(ctx context.Context) *Client

type Config

type Config struct {
	OAuth  oauth2.TokenSource
	Repo   string
	Logger *log.Logger // default log.Default()
}

func (*Config) SplitGitHubRepo

func (c *Config) SplitGitHubRepo() (owner, repo string)

SplitGitHubRepo splits the GitHub repository path into its owner and name.

Jump to

Keyboard shortcuts

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