mutators

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableMutatorsHelp added in v0.9.16

func AvailableMutatorsHelp() string

func ListAvailableMutators

func ListAvailableMutators() []string

func Register

func Register(name string, factory Factory) error

func Run

func Run(mutatorName, input string) string

Types

type Factory

type Factory interface {
	NewMutator(logger *log.Logger) (Mutator, error)
	Name() string
	Description() string
	Category() string
}

type GenericMutator

type GenericMutator struct {
	Mu     sync.Mutex
	Logger *log.Logger

	Started bool
	Waited  bool
	Done    chan struct{}
}

func NewGeneric

func NewGeneric(logger *log.Logger) GenericMutator

type Mutator

type Mutator interface {
	Start(w io.WriteCloser, r io.ReadCloser) error
	Wait() error
	Name() string
	Description() string
	Category() string
}

func New

func New(name string) (Mutator, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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