github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubClient

func NewGitHubClient(ctx context.Context, token string) *github.Client

NewGitHubClient creates a new GitHub client using the provided OAuth token.

Types

type GitHubReadOptions

type GitHubReadOptions struct {
	Repos []string
	Token string
}

ReadOptions defines options for reading GitHub repository data.

type GitHubReader

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

GitHubReader reads GitHub repository data and implements the Reader interface.

func NewGitHubReader

func NewGitHubReader(ctx context.Context, opts *GitHubReadOptions) (*GitHubReader, error)

NewGitHubReader creates a new GitHub reader for fetching repository data.

func (*GitHubReader) Close

func (r *GitHubReader) Close() error

Close releases resources associated with the GitHubReader.

func (*GitHubReader) Read

func (r *GitHubReader) Read() (arrow.Record, error)

Read reads the next record of GitHub repository data.

func (*GitHubReader) Schema

func (r *GitHubReader) Schema() *arrow.Schema

Schema returns the schema of the records being read from GitHub API.

Jump to

Keyboard shortcuts

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