router

package
v0.0.0-...-9823ec8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package router provides several rate-limit routers using the golang.org/x/time/rate lib

Index

Constants

View Source
const Namespace = "github.com/starvn/sonic/qos/ratelimit/rate/router"

Variables

View Source
var ZeroCfg = Config{}

Functions

func ConfigGetter

func ConfigGetter(e config.ExtraConfig) interface{}

Types

type Config

type Config struct {
	MaxRate       int
	Strategy      string
	ClientMaxRate int
	Key           string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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