grpc: Index | Files

package metadata

import ""

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

This package is experimental.


Package Files


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.