aqm

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

README

business/blademaster/supervisor

项目简介

blademaster 的 aqm middleware,主动队列管理,请求延迟检测于优先级策略管理

编译环境

  • 请只用 Golang v1.8.x 以上版本编译执行

依赖包

  • No other dependency

Documentation

Overview

Example

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.

package main

import ()

func main() {

}
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AQM

type AQM struct {
	// contains filtered or unexported fields
}

AQM aqm midleware.

func New

func New(conf *aqm.Config) (s *AQM)

New return a ratelimit midleware.

func (*AQM) Limit

func (a *AQM) Limit() bm.HandlerFunc

Limit return a bm handler func.

Jump to

Keyboard shortcuts

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