middleware

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipe

type Pipe interface {
	Handle(data inter.Request, next inter.MiddlewareDestination) inter.Response
}

type Pipeline

type Pipeline struct {
	App *inter.App

	// The object being passed through the contract.
	Passable inter.Request

	// the array of pipes.
	Pipes []inter.Pipe
}

noinspection GoNameStartsWithPackageName

func NewPipeline

func NewPipeline(app *inter.App) Pipeline

func (Pipeline) AppPath

func (p Pipeline) AppPath() string

func (Pipeline) Send

func (p Pipeline) Send(passable inter.Request) Pipeline

Set the object being sent through the contract.

func (Pipeline) Then

func (p Pipeline) Then(destination inter.MiddlewareDestination) inter.Response

Run the contract with a final destination callback.

func (Pipeline) Through

func (p Pipeline) Through(pipes []inter.Pipe) Pipeline

Set the array of pipes.

Jump to

Keyboard shortcuts

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