Documentation
¶
Overview ¶
Package for providers, which allow filling comicinfo struct by different source.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataProvider ¶
type DataProvider interface {
// Fill input comicinfo by provider's method.
// There has two possiblity of fill method:
//
// 1. Fill success, return changed comicinfo and nil error
// 2. Fill failed, return unchanged comicinfo (same as input) and error it self
Fill(input *comicinfo.ComicInfo) (result *comicinfo.ComicInfo, err error)
}
Provider interface for struct that fill comicinfo data.
All provider should implement this interface for consistant structure. To ensure interface is valid, developer MUST add below code:
var _ dataprovider.DataProvider = (*MyDataProvider)(nil)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package to get comicinfo data from config, which is the program config that used by application and retrieve from program start.
|
Package to get comicinfo data from config, which is the program config that used by application and retrieve from program start. |
|
Package to get comicinfo data from file system.
|
Package to get comicinfo data from file system. |
|
Package for comicinfo data provider that use database record and bookname to fill details of comicinfo.
|
Package for comicinfo data provider that use database record and bookname to fill details of comicinfo. |
Click to show internal directories.
Click to hide internal directories.