abc

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IResLink interface {
	// 平台名称
	Platform() string
	// 遍历数据
	Walk(func(models.ResLink) error) error
	// 获取单篇数据, 根据传递的格式内容,转换成对应的格式
	GetRes(tpy string) (models.ResLink, error)
	// 删除单篇
	DelRes() error
	// 更新单篇
	UpdateRes(tpy string) error
	// 创建
	CreateRes(tpy string) error
	// 搜索
	Search(kw string) ([]models.ResLink, error)
}

type IResLinkCmd

type IResLinkCmd interface {
	// 平台名称
	Platform() string
	// 遍历数据
	Walk(func(models.ResLink) error) error
	// 获取单篇数据, 根据传递的格式内容,转换成对应的格式
	GetRes(tpy string) (models.ResLink, error)
	// 删除单篇
	DelRes() error
	// 更新单篇
	UpdateRes(tpy string) error
	// 创建
	CreateRes(tpy string) error
	// 搜索
	Search(kw string) ([]models.ResLink, error)
}

type IResLinkStore

type IResLinkStore interface {
	Cfg(*res.Config) error
	Driver() string
	Create(name string) (models.ResLink, error)
	Walk(func(models.ResLink) error) error
	Update(models.ResLink) error
	Delete(name string) error
	Find(name string) (models.ResLink, error)
	Search(match string, cb func(models.ResLink) error) error
}

IResLinkStore

Jump to

Keyboard shortcuts

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