Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoNothingResponseMiddleware ¶
type DoNothingResponseMiddleware struct{}
DoNothingResponseMiddleware is an NO-OP implemenation of the ResponseMiddleware interface
func NewDoNothingResponseMiddleware ¶
func NewDoNothingResponseMiddleware() *DoNothingResponseMiddleware
NewDoNothingResponseMiddleware returns a new DoNothingResponseMiddleware
type MiddlewareNodeFn ¶
MiddlewareNodeFn represents the functionality of a single middleware in the chain. Each of these functions is responsible for invoking the next() middleware in the chain and handling the error.
type ResponseMiddleware ¶
ResponseMiddleware represents the response-processing middleware functionality of a multiple-host proxy
type ResponseMiddlewareChain ¶
type ResponseMiddlewareChain struct {
// contains filtered or unexported fields
}
ResponseMiddlewareChain represents a linked-list-like data structure where each node is a middleware to be executed
func NewResponseMiddlewareChain ¶
func NewResponseMiddlewareChain(layers ...MiddlewareNodeFn) *ResponseMiddlewareChain
NewResponseMiddlewareChain returns a new ResponseMiddlewareChain initialized with the given list of MiddlewareNodeFn. They will be executed in the order in which they are given.