hepa

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.0.1"

Version of hepa

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Filter([]byte) ([]byte, error)
}

type FilterFunc

type FilterFunc func([]byte) ([]byte, error)

func Noop

func Noop() FilterFunc

func (FilterFunc) Filter

func (f FilterFunc) Filter(b []byte) ([]byte, error)

type Purifier

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

func Clean

func Clean(p Purifier, s []byte) Purifier

func New

func New() Purifier

func Rinse

func Rinse(p Purifier, s, r []byte) Purifier

func With

func With(p Purifier, f Filter) Purifier

func WithFunc

func WithFunc(p Purifier, fn FilterFunc) Purifier

func (Purifier) Clean

func (p Purifier) Clean(r io.Reader) ([]byte, error)

func (Purifier) Filter

func (p Purifier) Filter(b []byte) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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