redirectorv2

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package redirector implements a filter to handle HTTP redirects.

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirector

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

Redirector is filter to redirect HTTP requests.

func (*Redirector) Close

func (r *Redirector) Close()

Close closes Redirector.

func (*Redirector) Handle

func (r *Redirector) Handle(ctx *context.Context) string

Handle Redirector Context.

func (*Redirector) Inherit

func (r *Redirector) Inherit(previousGeneration filters.Filter)

Inherit inherits previous generation of Redirector.

func (*Redirector) Init

func (r *Redirector) Init()

Init initializes Redirector.

func (*Redirector) Kind

func (r *Redirector) Kind() *filters.Kind

Kind returns the kind of Redirector.

func (*Redirector) Name

func (r *Redirector) Name() string

Name returns the name of the Redirector filter instance.

func (*Redirector) Spec

func (r *Redirector) Spec() filters.Spec

Spec returns the spec used by the Redirector

func (*Redirector) Status

func (r *Redirector) Status() interface{}

Status returns status.

type Spec

type Spec struct {
	filters.BaseSpec `json:",inline"`

	gwapis.HTTPRequestRedirectFilter `json:",inline"`
}

Spec describes the Redirector.

func (*Spec) Validate

func (s *Spec) Validate() error

Validate validates the spec.

Jump to

Keyboard shortcuts

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