throttle

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FtpThrottle

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

func NewFtpThrottle

func NewFtpThrottle(lf fx.Lifecycle, cfg *config.Config) *FtpThrottle

func (*FtpThrottle) Close

func (t *FtpThrottle) Close()

func (*FtpThrottle) ReleaseAll

func (t *FtpThrottle) ReleaseAll(id int64)

func (*FtpThrottle) ReleaseOnePendingProcessFromEach

func (t *FtpThrottle) ReleaseOnePendingProcessFromEach()

func (*FtpThrottle) ReleasePendingProcess

func (t *FtpThrottle) ReleasePendingProcess(id int64)

func (*FtpThrottle) Start

func (t *FtpThrottle) Start()

func (*FtpThrottle) Throttle

func (t *FtpThrottle) Throttle(id int64) (chan bool, error)

Register a new client and returns a channel to close all pending operations with

func (*FtpThrottle) Unregister

func (t *FtpThrottle) Unregister(id int64)

Jump to

Keyboard shortcuts

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