Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMetadata

func WithMetadata(ctx context.Context, md Metadata) context.Context

    WithMetadata places the provided metadata on the context.

    Types

    type Metadata

    type Metadata interface {
    	WriteResponseHeader(k, v string) error
    	Caller() string
    	Service() string
    	Transport() string
    	Procedure() string
    	Encoding() transport.Encoding
    	Headers() transport.Headers
    	ShardKey() string
    	RoutingKey() string
    	RoutingDelegate() string
    }

      Metadata holds metadata for an incoming request. This includes metadata about the inbound request as well as response metadata.

      This drives the behavior of yarpc.Call and encoding.Call.

      func GetMetadata

      func GetMetadata(ctx context.Context) (Metadata, bool)

        GetMetadata retrieves inbound call metadata from a context.

        Source Files