blk

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

README

blk

书籍、动漫的数据源插件

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blk

type Blk interface {
	// Name 名称
	Name() string
	// Author 作者
	Author() types.Author
	// DataType 当前数据类型
	DataType() types.DataType
	// IsByURI 判断当前的url是否是当前blk
	IsByURI(uri *url.URL) bool
	// InitConf 初始化配置文件
	InitConf(conf interface{}) error
	// SetLicense 设置license
	SetLicense(license []byte) error
	// Search 搜索
	Search(ctx context.Context, search string, page, size int) (*types.DataSearch, error)
	// DataInfo 获取数据信息
	DataInfo(ctx context.Context, uri string) (*types.DataInfo, error)
	// DataItemInfo 数据项信息
	DataItemInfo(ctx context.Context, uri string) (*types.DataItemInfo, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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