append

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnaryClientInterceptor

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

UnaryClientInterceptor appends metadata to outgoing

func UnaryServerInterceptor

func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor

UnaryServerInterceptor appends metadata to outgoing

Types

type MetadataFunc

type MetadataFunc func() metadata.MD

type Option

type Option func(*Options)

func WithMetadataFunc

func WithMetadataFunc(f MetadataFunc) Option

func WithOverwrite

func WithOverwrite(overwrite bool) Option

func WithPairs

func WithPairs(kv ...string) Option

WithPairs pass kv: "k1", "v1", "k1", "v2", "k2", "v3"

func WithTraceID

func WithTraceID() Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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