remotefilter

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the kind of RemoteFilter.
	Kind = "RemoteFilter"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteFilter

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

RemoteFilter is the filter making remote service acting like internal filter.

func (*RemoteFilter) Close

func (rf *RemoteFilter) Close()

Close closes RemoteFilter.

func (*RemoteFilter) DefaultSpec

func (rf *RemoteFilter) DefaultSpec() interface{}

DefaultSpec returns default spec.

func (*RemoteFilter) Description

func (rf *RemoteFilter) Description() string

Description returns the description of RemoteFilter.

func (*RemoteFilter) Handle

func (rf *RemoteFilter) Handle(ctx context.HTTPContext) (result string)

Handle handles HTTPContext by calling remote service.

func (*RemoteFilter) Inherit

func (rf *RemoteFilter) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)

Inherit inherits previous generation of RemoteFilter.

func (*RemoteFilter) Init

func (rf *RemoteFilter) Init(filterSpec *httppipeline.FilterSpec)

Init initializes RemoteFilter.

func (*RemoteFilter) Kind

func (rf *RemoteFilter) Kind() string

Kind returns the kind of RemoteFilter.

func (*RemoteFilter) Results

func (rf *RemoteFilter) Results() []string

Results returns the results of RemoteFilter.

func (*RemoteFilter) Status

func (rf *RemoteFilter) Status() interface{}

Status returns status.

type Spec

type Spec struct {
	URL     string `yaml:"url" jsonschema:"required,format=uri"`
	Timeout string `yaml:"timeout" jsonschema:"omitempty,format=duration"`
	// contains filtered or unexported fields
}

Spec describes RemoteFilter.

Jump to

Keyboard shortcuts

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