dds

package
v0.0.0-...-ae413d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DubboResource is the type URL of the DubboResource protobuf.
	DubboResource = googleApis + "dubbo.mesh.v1alpha1.DubboResource"

	MetadataFieldConfig    = "config"
	MetadataFieldVersion   = "version"
	MetadataFeatures       = "features"
	MetadataControlPlaneId = "control-plane-id"
)
View Source
const FeatureHashSuffix string = "hash-suffix"
View Source
const FeatureZonePingHealth string = "zone-ping-health"

FeatureZonePingHealth means that the zone control plane sends pings to the global control plane to indicate it's still running.

View Source
const FeatureZoneToken string = "zone-token"

FeatureZoneToken means that the zone control plane can handle incoming Zone Token from global control plane.

View Source
const FeaturesMetadataKey string = "features"

Variables

This section is empty.

Functions

func ContextHasFeature

func ContextHasFeature(ctx context.Context, feature string) bool

Types

type Features

type Features map[string]bool

Features is a set of available features for the control plane. If by any chance we get into a situation that we need to execute a logic conditionally on capabilities of control plane, instead of defining conditions on version which is fragile, we can define a condition based on features.

func (Features) HasFeature

func (f Features) HasFeature(feature string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL