pipeline

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pl

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

func NewPipeline

func NewPipeline(log *zap.Logger, ch chain.ChainHandler) *Pl

func (*Pl) Add

func (pp *Pl) Add(w *Worker)

Add filter

func (*Pl) Async

func (pp *Pl) Async(a bool)

func (*Pl) Error

func (pp *Pl) Error() types.ErrorHandlerFunc

func (*Pl) ErrorHandler

func (pp *Pl) ErrorHandler(ff types.ErrorHandlerFunc)

ErrorHandler adds error handler

func (*Pl) Handler

func (pp *Pl) Handler() http.Handler

Handler is the main operating entry point for requests that handles filter groups

type Worker

type Worker struct {
	Weight  int
	Async   bool
	Name    string
	Type    types.FilterKind
	Handler func(rw http.ResponseWriter, r *http.Request) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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