traffic

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCPlugin

func NewGRPCPlugin(name string, addr string, opts ...plugin.Option) traffic.TrafficLimiter

NewGRPCPlugin creates a traffic limiter plugin based on gRPC.

func NewHTTPPlugin

func NewHTTPPlugin(name string, url string, opts ...plugin.Option) traffic.TrafficLimiter

NewHTTPPlugin creates a traffic limiter plugin based on HTTP.

Types

This section is empty.

Jump to

Keyboard shortcuts

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