api

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Name() string                                                    //Name of API
	LookupBook(ctx context.Context, id string) (*entity.Book, error) //Lookup book data by API
	LookupRawData(ctx context.Context, id string) (io.Reader, error) //Lookup raw data by API
}

API is interface class for searching book API

type ServiceType

type ServiceType int

ECode is error codes for books-data

const (
	TypeOthers ServiceType = iota
	TypePAAPI
	TypeOpenBD
	TypeAozoraAPI
)

func (ServiceType) String

func (t ServiceType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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