Documentation

Overview

Package firstoutboundmiddleware annotates every outbound request with metadata like the request transport protocol. These metadata must be avilable to all subsequent middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct{}

Middleware is the first middleware that MUST be executed in the chain of TransportOutboundMiddleware.

func New

func New() *Middleware

New returns middleware to begin any YARPC outbound middleware chain.

func (*Middleware) Call

Call implements middleware.UnaryOutbound.

func (*Middleware) CallOneway

CallOneway implements middleware.OnewayOutbound.

func (*Middleware) CallStream

CallStream implements middleware.StreamOutbound.

Source Files