traffic

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 12 Imported by: 0

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.ITrafficLimiter

NewGRPCPlugin creates a traffic limiter plugin based on gRPC.

func NewHTTPPlugin

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

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