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
Click to show internal directories.
Click to hide internal directories.