Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlobChan ¶
type BlobChan struct {
// contains filtered or unexported fields
}
func NewBlobChan ¶
func (*BlobChan) CloseWithError ¶
type Library ¶
type Library interface {
GetName() string
GetRateLimit() time.Duration
DefaultPerPage() int
GetLiterature(context.Context, Request) (Response, error)
GetMaxLiterature(context.Context, Request) (int, error)
ParsePublication(Blob) (Publication, error)
PrettyPrint(Blob, *bytes.Buffer) error
GetAbstract(context.Context, Publication) (Abstract, error)
ToBibTeX(Publication) bibtex.Reference
ReferenceLink(Publication) string
}
type Publication ¶
type Publication struct {
Title string `json:"title"`
CoverDate time.Time `json:"cover_date"`
Creator string `json:"creator"`
// Misc stuff used by clients to accomplish Library interface.
Values map[string]string `json:"values"`
*Abstract `json:"abstract,omitempty"`
*Review `json:"review,omitempty"`
*Keywords `json:"keywords,omitempty"`
}
func (*Publication) GetAbstract ¶
func (p *Publication) GetAbstract(ctx context.Context, lib Library) error
Click to show internal directories.
Click to hide internal directories.