dataprovider

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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