Documentation ¶
Overview ¶
Package pipeline provides the pipeline of Easegress.
Index ¶
- Constants
- func MockGetFilter(p *Pipeline, name string) filters.Filter
- type FilterStat
- type FlowNode
- type HandleWithBeforeAfterOption
- type Pipeline
- func (p *Pipeline) Category() supervisor.ObjectCategory
- func (p *Pipeline) Close()
- func (p *Pipeline) DefaultSpec() interface{}
- func (p *Pipeline) Handle(ctx *context.Context) string
- func (p *Pipeline) HandleWithBeforeAfter(ctx *context.Context, before, after *Pipeline, ...) string
- func (p *Pipeline) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object, ...)
- func (p *Pipeline) Init(superSpec *supervisor.Spec, muxMapper context.MuxMapper)
- func (p *Pipeline) Kind() string
- func (p *Pipeline) Status() *supervisor.Status
- type Spec
- type Status
Constants ¶
const ( // Category is the category of Pipeline. Category = supervisor.CategoryPipeline // Kind is the kind of Pipeline. Kind = "Pipeline" // BuiltInFilterEnd is the name of the build-in end filter. BuiltInFilterEnd = "END" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterStat ¶
FilterStat records the statistics of a filter.
type FlowNode ¶
type FlowNode struct { FilterName string `json:"filter" jsonschema:"required,format=urlname"` FilterAlias string `json:"alias,omitempty"` Namespace string `json:"namespace,omitempty"` JumpIf map[string]string `json:"jumpIf,omitempty"` // contains filtered or unexported fields }
FlowNode describes one node of the pipeline flow.
type HandleWithBeforeAfterOption ¶ added in v2.7.2
HandleWithBeforeAfterOption is the option of HandleWithBeforeAfter. FallthroughBefore: if true, the pipeline will be executed even if the before pipeline ends. FallthroughPipeline: if true, the after pipeline will be executed even if the pipeline ends.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline is Object Pipeline.
func (*Pipeline) Category ¶
func (p *Pipeline) Category() supervisor.ObjectCategory
Category returns the category of Pipeline.
func (*Pipeline) DefaultSpec ¶
func (p *Pipeline) DefaultSpec() interface{}
DefaultSpec returns the default spec of Pipeline.
func (*Pipeline) HandleWithBeforeAfter ¶
func (p *Pipeline) HandleWithBeforeAfter(ctx *context.Context, before, after *Pipeline, option HandleWithBeforeAfterOption) string
HandleWithBeforeAfter handles the request, with additional flow defined by the before/after pipeline.
func (*Pipeline) Inherit ¶
func (p *Pipeline) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object, muxMapper context.MuxMapper)
Inherit inherits previous generation of Pipeline.
func (*Pipeline) Init ¶
func (p *Pipeline) Init(superSpec *supervisor.Spec, muxMapper context.MuxMapper)
Init initializes Pipeline.
func (*Pipeline) Status ¶
func (p *Pipeline) Status() *supervisor.Status
Status returns Status generated by Runtime.