inboundcall

package
v1.73.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 2 Imported by: 0

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
	CallerProcedure() 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.

Jump to

Keyboard shortcuts

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