fetch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarksFetcher

type BookmarksFetcher struct{}

func NewBookmarksFetcher

func NewBookmarksFetcher() *BookmarksFetcher

func (*BookmarksFetcher) GetItems

func (f *BookmarksFetcher) GetItems(userOrFile string) ([]*entity.Item, error)

type Fetcher

type Fetcher interface {
	GetItems(userOrFile string) ([]*entity.Item, error)
}

type Github

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

func NewGithub

func NewGithub(client GithubConnector) *Github

func (*Github) GetItems

func (g *Github) GetItems(user string) ([]*entity.Item, error)

type GithubConnector

type GithubConnector interface {
	ListStarred(ctx context.Context, user string, opts *github.ActivityListStarredOptions) ([]*github.StarredRepository, *github.Response, error)
}

type HackerNewsFetcher

type HackerNewsFetcher struct{}

func NewHackerNewsFetcher

func NewHackerNewsFetcher() *HackerNewsFetcher

func (*HackerNewsFetcher) GetItems

func (f *HackerNewsFetcher) GetItems(userOrFile string) ([]*entity.Item, error)

Jump to

Keyboard shortcuts

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