package
0.0.0-20241027000905-5e451f0e72aa
Repository: https://github.com/more-infra/base.git
Documentation: pkg.go.dev

# Functions

NewBuffer create a buffer with the options.
WithBufferingIdleTime defines the idle time of the background goroutine keeping when the self-defined queue is empty.
WithChannelCapacity set the channel capacity, this value could not be changed after the Buffer is created.
WithQueueCapacity set the self-defined queue capacity, this value could be changed by SetCapacity method.
WithQueuePolicy defines the policy when the queue is full.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Buffer provides the channel that capacity can be extended dynamically.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author