bridge

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: 5 Imported by: 0

Documentation

Index

Constants

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

	// Description is the Description of Bridge.
	Description = `` /* 527-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

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

Bridge is filter Bridge.

func (*Bridge) Close

func (b *Bridge) Close()

Close closes Bridge.

func (*Bridge) DefaultSpec

func (b *Bridge) DefaultSpec() interface{}

DefaultSpec returns the default spec of Bridge.

func (*Bridge) Description

func (b *Bridge) Description() string

Description returns the description of Bridge.

func (*Bridge) Handle

func (b *Bridge) Handle(ctx context.HTTPContext) (result string)

Handle builds a bridge for pipeline.

func (*Bridge) Inherit

func (b *Bridge) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)

Inherit inherits previous generation of Bridge.

func (*Bridge) Init

func (b *Bridge) Init(filterSpec *httppipeline.FilterSpec)

Init initializes Bridge.

func (*Bridge) InjectMuxMapper added in v1.0.1

func (b *Bridge) InjectMuxMapper(mapper protocol.MuxMapper)

InjectMuxMapper injects mux mapper into Bridge.

func (*Bridge) Kind

func (b *Bridge) Kind() string

Kind returns the kind of Bridge.

func (*Bridge) Results

func (b *Bridge) Results() []string

Results returns the results of Bridge.

func (*Bridge) Status

func (b *Bridge) Status() interface{}

Status returns status.

type Spec

type Spec struct {
	Destinations []string `yaml:"destinations" jsonschema:"required,pattern=^[^ \t]+$"`
}

Spec describes the Mock.

Jump to

Keyboard shortcuts

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