grpc: google.golang.org/grpc/internal/metadata Index | Files

package metadata

import "google.golang.org/grpc/internal/metadata"

Package metadata contains functions to set and get metadata from addresses.

This package is experimental.

Index

Package Files

metadata.go

func Get Uses

func Get(addr resolver.Address) metadata.MD

Get returns the metadata of addr.

func Set Uses

func Set(addr resolver.Address, md metadata.MD) resolver.Address

Set sets (overrides) the metadata in addr.

When a SubConn is created with this address, the RPCs sent on it will all have this metadata.

Package metadata imports 2 packages (graph) and is imported by 4 packages. Updated 2020-11-19. Refresh now. Tools for package owners.