Documentation ¶
Index ¶
- Constants
- type Fallback
- func (f *Fallback) Close()
- func (f *Fallback) DefaultSpec() interface{}
- func (f *Fallback) Description() string
- func (f *Fallback) Handle(ctx context.HTTPContext) string
- func (f *Fallback) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
- func (f *Fallback) Init(filterSpec *httppipeline.FilterSpec)
- func (f *Fallback) Kind() string
- func (f *Fallback) Results() []string
- func (f *Fallback) Status() interface{}
- type Spec
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) DefaultSpec ¶
func (f *Fallback) DefaultSpec() interface{}
DefaultSpec returns default spec of Fallback.
func (*Fallback) Description ¶
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.
Click to show internal directories.
Click to hide internal directories.