pipelines

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package pipelines provides the content processing pipelines for evoke.

Package pipelines provides the content processing pipelines for evoke.

Package pipelines provides the content processing pipelines for evoke.

Package pipelines provides the content processing pipelines for evoke.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Path     string
	Content  io.Reader
	Metadata map[string]interface{}
}

Asset represents a file being processed by the pipeline.

type CopyPipeline

type CopyPipeline struct{}

CopyPipeline is a pipeline for copying files.

func NewCopyPipeline

func NewCopyPipeline() *CopyPipeline

NewCopyPipeline creates a new CopyPipeline.

func (*CopyPipeline) Process

func (p *CopyPipeline) Process(asset *Asset) (*Asset, error)

Process processes the asset.

type GRPC

type GRPC struct {
	Plugin plugins.Plugin
	Name   string
}

GRPC is a pipeline that uses a gRPC plugin to process assets.

func NewGRPCPipeline

func NewGRPCPipeline(plugin plugins.Plugin, name string) *GRPC

NewGRPCPipeline creates a new gRPC pipeline.

func (*GRPC) Process

func (p *GRPC) Process(asset *Asset) (*Asset, error)

Process processes an asset using the gRPC plugin.

type HTMLPipeline

type HTMLPipeline struct{}

HTMLPipeline is a pipeline for processing HTML files.

func NewHTMLPipeline

func NewHTMLPipeline() *HTMLPipeline

NewHTMLPipeline creates a new HTMLPipeline.

func (*HTMLPipeline) Process

func (p *HTMLPipeline) Process(asset *Asset) (*Asset, error)

Process processes the asset.

type MarkdownPipeline

type MarkdownPipeline struct {
	Goldmark goldmark.Markdown
}

MarkdownPipeline is a pipeline for processing Markdown files.

func NewMarkdownPipeline

func NewMarkdownPipeline(gm goldmark.Markdown) *MarkdownPipeline

NewMarkdownPipeline creates a new MarkdownPipeline.

func (*MarkdownPipeline) Process

func (p *MarkdownPipeline) Process(asset *Asset) (*Asset, error)

Process processes the asset.

type Pipeline

type Pipeline interface {
	Process(asset *Asset) (*Asset, error)
}

Pipeline is an interface for processing assets.

Jump to

Keyboard shortcuts

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