pipeline

package
v0.0.0-...-9945827 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPipeline

func RegisterPipeline(f *Factory)

Types

type Bswtan

type Bswtan struct {
}

func (*Bswtan) Name

func (b *Bswtan) Name() string

func (*Bswtan) Run

func (b *Bswtan) Run(path string, v interface{}) error

type BswtanResult

type BswtanResult struct {
	URL          string `mapstructure:"_url"`
	Title        string `mapstructure:"title"`
	Author       string `mapstructure:"author"`
	ChapterTitle string `mapstructure:"chapter_title"`
	Content      string `mapstructure:"content"`
}

func (*BswtanResult) GetAuthor

func (b *BswtanResult) GetAuthor() string

func (*BswtanResult) GetChapterTitle

func (b *BswtanResult) GetChapterTitle() string

func (*BswtanResult) GetContent

func (b *BswtanResult) GetContent() string

func (*BswtanResult) GetDir

func (b *BswtanResult) GetDir() string

func (*BswtanResult) GetFilename

func (b *BswtanResult) GetFilename() string

func (*BswtanResult) GetTitle

func (b *BswtanResult) GetTitle() string

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*Factory, error)

func (*Factory) Merge

func (f *Factory) Merge() error

func (*Factory) Pipeline

func (f *Factory) Pipeline(name string, v interface{}) error

func (*Factory) RegisterPipeline

func (f *Factory) RegisterPipeline(p Pipeline) *Factory

func (*Factory) SetPath

func (f *Factory) SetPath(path string) error

type Pipeline

type Pipeline interface {
	Name() string
	Run(path string, v interface{}) error
}

Jump to

Keyboard shortcuts

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