governance

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindMatchPrefix        = "servicecomb.match"
	KindRateLimitingPrefix = "servicecomb.rateLimiting"
)

prefix const

Variables

This section is empty.

Functions

func Init

func Init()

Init go through all governance configs and call process func according to key prefix

func InstallProcessor added in v1.8.2

func InstallProcessor(keyPrefix string, process ProcessFunc)

InstallProcessor install a func to process config, if a config key matches the key prefix, then the func will process the config

func ProcessLimiter

func ProcessLimiter(key string, value string)

ProcessLimiter saves limiter, after a invocation is marked, go chassis will get correspond limiter with mark name

func ProcessMatch

func ProcessMatch(key string, value string)

ProcessMatch saves all policy to match module then match module is able to mark invocation

Types

type ProcessFunc

type ProcessFunc func(key string, value string)

ProcessFunc process a config

Jump to

Keyboard shortcuts

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