fallback

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Fallback

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

Fallback is filter Fallback.

func (*Fallback) Close

func (f *Fallback) Close()

Close closes Fallback.

func (*Fallback) DefaultSpec

func (f *Fallback) DefaultSpec() interface{}

DefaultSpec returns default spec of Fallback.

func (*Fallback) Description

func (f *Fallback) Description() string

Description returns the description of Fallback.

func (*Fallback) Handle

func (f *Fallback) Handle(ctx context.HTTPContext) string

Handle fallbacks HTTPContext. It always returns fallback.

func (*Fallback) Inherit

func (f *Fallback) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)

Inherit inherits previous generation of Fallback.

func (*Fallback) Init

func (f *Fallback) Init(filterSpec *httppipeline.FilterSpec)

Init initializes Fallback.

func (*Fallback) Kind

func (f *Fallback) Kind() string

Kind returns the kind of Fallback.

func (*Fallback) Results

func (f *Fallback) Results() []string

Results returns the results of Fallback.

func (*Fallback) Status

func (f *Fallback) Status() interface{}

Status returns Status.

type Spec

type Spec struct {
	fallback.Spec `yaml:",inline"`
}

Spec describes the Fallback.

Jump to

Keyboard shortcuts

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