papersappcmd

package
v0.0.0-...-6256cc4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionsForEndpoint

func OptionsForEndpoint(cfg apicrawlcmd.Crawl[Service], token *apitokens.T) ([]operations.Option, error)

Types

type Command

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

Çommand implements the command line operations available for papersapp.com.

func NewCommand

func NewCommand(crawl apicrawlcmd.Crawl[yaml.Node], cfs operations.FS, token *apitokens.T) (*Command, error)

NewCommand returns a new Command instance for the specified API crawl with API authentication information read from the specified file or from the context.

func (*Command) Crawl

func (c *Command) Crawl(ctx context.Context, cacheRoot string, _ *CrawlFlags) error

func (*Command) ScanDownloaded

func (c *Command) ScanDownloaded(ctx context.Context, root string, _ *ScanFlags) error

type CrawlFlags

type CrawlFlags struct{}

type ScanFlags

type ScanFlags struct{}

type Service

type Service struct {
	ServiceURL        string `yaml:"service_url" cmd:"papersapp service URL, typically https://api.papers.ai"`
	RefreshTokenURL   string `yaml:"refresh_token_url" cmd:"papersapp refresh token URL, typically https://api.papers.ai/oauth/token"`
	ListItemsPageSize int    `yaml:"list_items_page_size" cmd:"number of items in each page of results, typically 50"`
}

Jump to

Keyboard shortcuts

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