tps

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tps provides a filter for limiting the requests by TPS.

if you wish to use the TpsLimiter, please add the configuration into your service provider configuration:
for example:
"UserProvider":
  registry: "hangzhouzk"
  protocol : "dubbo"
  interface : "com.ikurento.user.UserProvider"
  ... # other configuration
  tps.limiter: "method-service", # it should be the name of limiter. if the value is 'default',
                                 # the MethodServiceTpsLimiter will be used.
  tps.limit.rejected.handler: "default", # optional, or the name of the implementation
  if the value of 'tps.limiter' is nil or empty string, the tps filter will do nothing

Directories

Path Synopsis
Package filter is a generated GoMock package.
Package filter is a generated GoMock package.
Package filter is a generated GoMock package.
Package filter is a generated GoMock package.

Jump to

Keyboard shortcuts

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