package
0.0.0-20200226065818-fe632b36a108
Repository: https://github.com/alipay/sofa-mesh.git
Documentation: pkg.go.dev

# Functions

CheckType validates that an attribute value has a supported type.
CopyBag makes a deep copy of a bag.
Equal compares two attribute values.
GetBagFromProto returns an initialized bag from an Attribute proto.
GetMutableBag returns an initialized bag.
GetMutableBagForTesting returns a Mutable bag based on the specified map Use this function only for testing purposes.
GetProtoForTesting returns a CompressedAttributes struct based on the specified map Use this function only for testing purposes.
No description provided by the author
NewList creates a new list.
NewListForTesting should only be used for testing.
NewProtoBag creates a new proto-based attribute bag.
NewStringMap instantiates a new string map.
WrapStringMap wraps a string map value without reference tracking.

# Structs

List wraps a list of values and optionally reference counts it.
MutableBag is a generic mechanism to read and write a set of attributes.
ProtoBag implements the Bag interface on top of an Attributes proto.
ReferencedAttributeSnapshot keeps track of the attribute reference state for a mutable bag.
StringMap wraps a map[string]string and optionally reference counts it.

# Interfaces

Bag is a generic mechanism to access a set of attributes.