Documentation ¶
Index ¶
- Constants
- func MatchingRegex(tags mesh_proto.SingleValueTagSet) string
- func RegexOR(r ...string) string
- func Serialize(tags mesh_proto.MultiValueTagSet) string
- func ServiceFromClusterName(name string) string
- type TagKeyTransformer
- type TagKeyTransformerFunc
- type TagKeys
- type TagKeysSlice
- type Tags
- type TagsSlice
Constants ¶
View Source
const TagsHeaderName = "x-dubbo-tags"
Variables ¶
This section is empty.
Functions ¶
func MatchingRegex ¶
func MatchingRegex(tags mesh_proto.SingleValueTagSet) string
func Serialize ¶
func Serialize(tags mesh_proto.MultiValueTagSet) string
func ServiceFromClusterName ¶
Types ¶
type TagKeyTransformer ¶
func With ¶
func With(tags ...string) TagKeyTransformer
func Without ¶
func Without(tags ...string) TagKeyTransformer
type TagKeyTransformerFunc ¶
func (TagKeyTransformerFunc) Apply ¶
func (f TagKeyTransformerFunc) Apply(slice TagKeys) TagKeys
type TagKeys ¶
type TagKeys []string
func (TagKeys) Transform ¶
func (t TagKeys) Transform(transformers ...TagKeyTransformer) TagKeys
Transform applies a list of transformers on the tag keys and return a new set of keys (always return sorted, unique sets).
type TagKeysSlice ¶
type TagKeysSlice []TagKeys
func TagKeySlice ¶
func TagKeySlice(tags []Tags) TagKeysSlice
func (TagKeysSlice) Transform ¶
func (t TagKeysSlice) Transform(transformers ...TagKeyTransformer) TagKeysSlice
Transform applies each transformer to each TagKeys and returns a sorted unique TagKeysSlice.
type Tags ¶
func DistinctTags ¶
func TagsFromString ¶
func (Tags) DestinationClusterName ¶
func (t Tags) DestinationClusterName( additionalIdentifyingTags map[string]string, ) (string, error)
DestinationClusterName generates a unique cluster name for the destination. identifyingTags are useful for adding extra metadata outside of just tags. Tags must at least contain `dubbo.io/service`
func (Tags) WithoutTags ¶
type TagsSlice ¶
type TagsSlice []Tags
func (TagsSlice) ToTagKeysSlice ¶
func (t TagsSlice) ToTagKeysSlice() TagKeysSlice
Click to show internal directories.
Click to hide internal directories.