bilibili-backup/library/net/http/blademaster/middleware/limit/aqm/example_test.go

10 lines
309 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
package aqm_test
// This example create a supervisor middleware instance and attach to a blademaster engine,
// it will allow '/ping' API can be requested with specified policy.
// This example will block all http method except `GET` on '/ping' API in next hour,
// and allow in further.
func Example() {
}