metadata

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatewayHeaderMatcherFunc

func GatewayHeaderMatcherFunc(withDefault bool, opts ...Option) runtime.HeaderMatcherFunc

func GatewayMetadataAnnotator

func GatewayMetadataAnnotator(opts ...Option) func(context.Context, *http.Request) metadata.MD

func StreamClientInterceptor

func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor

StreamClientInterceptor returns a new streaming client interceptor for metadata.

func UnaryClientInterceptor

func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor

UnaryClientInterceptor returns a new unary client interceptor for metadata.

Types

type Option

type Option func(option *options)

func WithHeader

func WithHeader(header string) Option

func WithHeaderReplace

func WithHeaderReplace(header, replace string) Option

func WithPrefix

func WithPrefix(prefix string) Option

func WithPrefixReplace

func WithPrefixReplace(prefix, replace string) Option

Jump to

Keyboard shortcuts

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