Skip to main content

GrpcFeatureFlagMap

type GrpcFeatureFlagMap​

The status of each protocol feature flag, keyed by flag name.

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

func GrpcFeatureFlagMapFromEntries​

func GrpcFeatureFlagMapFromEntries(entries []GrpcFeatureFlagMapEntry) *GrpcFeatureFlagMap

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

func LiftFromExternalGrpcFeatureFlagMap​

func LiftFromExternalGrpcFeatureFlagMap(handle uint64) *GrpcFeatureFlagMap

func (*GrpcFeatureFlagMap) ContainsKey​

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

Whether a value is stored under `key`.

func (*GrpcFeatureFlagMap) Destroy​

func (object *GrpcFeatureFlagMap) Destroy()

func (*GrpcFeatureFlagMap) Entries​

func (_self *GrpcFeatureFlagMap) Entries() []GrpcFeatureFlagMapEntry

Every entry, in key order.

func (*GrpcFeatureFlagMap) Get​

func (_self *GrpcFeatureFlagMap) Get(key string) *bool

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

func (*GrpcFeatureFlagMap) IsEmpty​

func (_self *GrpcFeatureFlagMap) IsEmpty() bool

Whether the map holds no entries.

func (*GrpcFeatureFlagMap) Keys​

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

Every key, in key order.

func (*GrpcFeatureFlagMap) Len​

func (_self *GrpcFeatureFlagMap) Len() uint64

The number of entries.

func (*GrpcFeatureFlagMap) Values​

func (_self *GrpcFeatureFlagMap) Values() []bool

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