dispatcher

package
v0.0.0-...-794c571 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitingDispatcher

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

func RegisterOn

func RegisterOn(server *core.Instance, lim *limiter.Limiter) (*LimitingDispatcher, error)

func (*LimitingDispatcher) AddInboundLimiter

func (ld *LimitingDispatcher) AddInboundLimiter(tag string, expiry int, nodeSpeedLimit uint64, subscriptionList *[]api.SubscriptionInfo, redisConfig *limiter.RedisConfig) error

func (*LimitingDispatcher) Close

func (ld *LimitingDispatcher) Close() error

func (*LimitingDispatcher) DeleteInboundLimiter

func (ld *LimitingDispatcher) DeleteInboundLimiter(tag string) error

func (*LimitingDispatcher) DeleteSubscriptionBuckets

func (ld *LimitingDispatcher) DeleteSubscriptionBuckets(tag string, emails []string)

func (*LimitingDispatcher) DeleteTrafficCounter

func (ld *LimitingDispatcher) DeleteTrafficCounter(tag string)

func (*LimitingDispatcher) Dispatch

func (ld *LimitingDispatcher) Dispatch(ctx context.Context, dest net.Destination) (*transport.Link, error)
func (ld *LimitingDispatcher) DispatchLink(ctx context.Context, dest net.Destination, link *transport.Link) error

func (*LimitingDispatcher) DrainDeltas

func (ld *LimitingDispatcher) DrainDeltas(tag string) *limiter.PendingTraffic

func (*LimitingDispatcher) GetOnlineIPs

func (ld *LimitingDispatcher) GetOnlineIPs(tag string) (*[]api.OnlineIP, error)

func (*LimitingDispatcher) GetTrafficCounter

func (ld *LimitingDispatcher) GetTrafficCounter(tag string) (*counter.TrafficCounter, bool)

func (*LimitingDispatcher) ResetTraffic

func (ld *LimitingDispatcher) ResetTraffic(pending *limiter.PendingTraffic)

func (*LimitingDispatcher) Start

func (ld *LimitingDispatcher) Start() error

func (*LimitingDispatcher) Type

func (ld *LimitingDispatcher) Type() interface{}

func (*LimitingDispatcher) UpdateInboundLimiter

func (ld *LimitingDispatcher) UpdateInboundLimiter(tag string, updatedSubscriptionList *[]api.SubscriptionInfo) error

Jump to

Keyboard shortcuts

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