aozoraapi

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AozoraAPI

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

OpenBD is a api.API class for openBD API

func New

func New() *AozoraAPI

New returns OpenBD instance

func (*AozoraAPI) LookupBook

func (a *AozoraAPI) LookupBook(ctx context.Context, id string) (*entity.Book, error)

LookupBook returns Book data from openBD

func (*AozoraAPI) LookupRawData

func (a *AozoraAPI) LookupRawData(ctx context.Context, id string) (io.Reader, error)

LookupRawData returns openBD raw data

func (*AozoraAPI) Name

func (a *AozoraAPI) Name() string

Name returns name of API

Jump to

Keyboard shortcuts

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