package attributes

Import Path
	google.golang.org/grpc/attributes (on go.dev)

Dependency Relation
	imports one package, and imported by 2 packages

Involved Source Files Package attributes defines a generic key/value store used in various gRPC components. All APIs in this package are EXPERIMENTAL.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
Attributes is an immutable struct for storing and retrieving generic key/value pairs. Keys must be hashable, and users should define their own types for keys. Value returns the value associated with these attributes for key, or nil if no value is associated with key. WithValues returns a new Attributes containing all key/value pairs in a and kvs. Panics if len(kvs) is not even. If the same key appears multiple times, the last value overwrites all previous values for that key. To remove an existing key, use a nil value. func New(kvs ...interface{}) *Attributes func (*Attributes).WithValues(kvs ...interface{}) *Attributes
Package-Level Functions (only one, which is exported)
New returns a new Attributes containing all key/value pairs in kvs. If the same key appears multiple times, the last value overwrites all previous values for that key. Panics if len(kvs) is not even.