mutators

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAvailableMutators

func ListAvailableMutators() []string

func ListAvailableMutatorsByCategoryWithDescriptions

func ListAvailableMutatorsByCategoryWithDescriptions() map[string][]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