Skip to main content

GrpcAttributeMap

type GrpcAttributeMap​

The value of each protocol attribute, keyed by attribute name.

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

func GrpcAttributeMapFromEntries​

func GrpcAttributeMapFromEntries(entries []GrpcAttributeMapEntry) *GrpcAttributeMap

Collect entries into a map. A key repeated across entries keeps the value of the last one.

func LiftFromExternalGrpcAttributeMap​

func LiftFromExternalGrpcAttributeMap(handle uint64) *GrpcAttributeMap

func (*GrpcAttributeMap) ContainsKey​

func (_self *GrpcAttributeMap) ContainsKey(key string) bool

Whether a value is stored under `key`.

func (*GrpcAttributeMap) Destroy​

func (object *GrpcAttributeMap) Destroy()

func (*GrpcAttributeMap) Entries​

func (_self *GrpcAttributeMap) Entries() []GrpcAttributeMapEntry

Every entry, in key order.

func (*GrpcAttributeMap) Get​

func (_self *GrpcAttributeMap) Get(key string) *string

The value stored under `key`, or `None` if there is none.

func (*GrpcAttributeMap) IsEmpty​

func (_self *GrpcAttributeMap) IsEmpty() bool

Whether the map holds no entries.

func (*GrpcAttributeMap) Keys​

func (_self *GrpcAttributeMap) Keys() []string

Every key, in key order.

func (*GrpcAttributeMap) Len​

func (_self *GrpcAttributeMap) Len() uint64

The number of entries.

func (*GrpcAttributeMap) Values​

func (_self *GrpcAttributeMap) Values() []string

Every value, ordered by the key it is stored under.