parser

package
v0.0.0-...-1b0f315 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NamedTransformationPrefix = "t_"

Variables

This section is empty.

Functions

func ArgToCropStrategy

func ArgToCropStrategy(arg string) transform.CropStrategy

Types

type NamedTransformationParser

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

func NewNamedTransformationParser

func NewNamedTransformationParser(namedTransformationStorage transform.Storer) NamedTransformationParser

func (*NamedTransformationParser) Parse

func (r *NamedTransformationParser) Parse(transformations string) (*string, error)

type Parser

type Parser struct {
}

func NewParser

func NewParser() Parser

func (*Parser) Parse

func (p *Parser) Parse(str string) ([]transform.Transformation, error)

type ScalerParser

type ScalerParser struct {
}

func (*ScalerParser) Parse

func (f *ScalerParser) Parse(args map[string]string) (*transform.Scaler, error)

type WatermarkerFactory

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

func NewWatermarkerFactory

func NewWatermarkerFactory(dataStorage media.FileStorer) WatermarkerFactory

func (*WatermarkerFactory) Build

func (f *WatermarkerFactory) Build(args map[string]string) (*transform.Watermarker, error)

Jump to

Keyboard shortcuts

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