api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMClient

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

func NewACMClient

func NewACMClient() *ACMClient

func (*ACMClient) Search

func (client *ACMClient) Search(params *SearchParams, opts ...Option) (*SearchResponse, error)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithContext

func WithContext(ctx context.Context) Option

type Reference

type Reference struct {
	Category   string
	Title      string
	Abstract   string
	DOI        *string
	PubDate    string
	Conference *string
	OpenAccess bool
	FreeAccess bool
	Metrics    ReferenceMetrics
}

type ReferenceMetrics added in v0.2.0

type ReferenceMetrics struct {
	Citations      int
	TotalDownloads *int
}

type SearchParams

type SearchParams struct {
	Request    string `schema:"AllField"`
	StartPage  *int   `schema:"startPage,omitempty"`
	PageSize   *int   `schema:"pageSize,omitempty"`
	BeforeYear *int   `schema:"BeforeYear,omitempty"`
	AfterYear  *int   `schema:"AfterYear,omitempty"`
}

type SearchResponse

type SearchResponse struct {
	Results    int
	References []*Reference
}

Jump to

Keyboard shortcuts

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