tdl

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Pipeline[*tdlv1alpha1.Spec, Sink]
}

type Input

type Input interface {
	io.Reader
	MediaType() MediaType
}

type MediaType

type MediaType string

func (MediaType) String

func (m MediaType) String() string

String implements fmt.Stringer.

type Pipeline

type Pipeline[T, V any] interface {
	Execute(T, V) error
}

type Plugin

type Plugin interface {
	fmt.Stringer
	Generator(Target) (Generator, error)
}

type Sink

type Sink interface {
	WriteUnit(string, io.Reader) error
}

type Target

type Target interface {
	fmt.Stringer
	Choose([]Generator) (Generator, error)
	Plugins() iter.Seq[Plugin]
}

Jump to

Keyboard shortcuts

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