reader

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: BSD-3-Clause Imports: 14 Imported by: 8

README

go-reader-github

GitHub and GitHub API support for the go-reader.Reader interface.

Documentation to follow. For now have a look at the tests.

See also

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubAPIReader

func NewGitHubAPIReader() wof_reader.Reader

func NewGitHubReader

func NewGitHubReader() wof_reader.Reader

Types

type GitHubAPIReader

type GitHubAPIReader struct {
	wof_reader.Reader
	// contains filtered or unexported fields
}

func (*GitHubAPIReader) Open

func (r *GitHubAPIReader) Open(ctx context.Context, uri string) error

func (*GitHubAPIReader) Read

func (r *GitHubAPIReader) Read(ctx context.Context, uri string) (io.ReadCloser, error)

func (*GitHubAPIReader) URI

func (r *GitHubAPIReader) URI(key string) string

type GitHubReader

type GitHubReader struct {
	wof_reader.Reader
	// contains filtered or unexported fields
}

func (*GitHubReader) Open

func (r *GitHubReader) Open(ctx context.Context, uri string) error

func (*GitHubReader) Read

func (r *GitHubReader) Read(ctx context.Context, uri string) (io.ReadCloser, error)

func (*GitHubReader) URI

func (r *GitHubReader) URI(key string) string

Jump to

Keyboard shortcuts

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