Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option can be used to setup the bundler.
func WithBufferedByteLimit ¶
WithBufferedByteLimit sets the maximum number of bytes that the Bundler will keep in memory before returning ErrOverflow. The default is DefaultBufferedByteLimit.
func WithBundleByteLimit ¶
WithBundleByteLimit sets the maximum size of a bundle, in bytes. Zero means unlimited. The default is DefaultBundleByteLimit.
func WithBundleByteThreshold ¶
WithBundleByteThreshold sets the max size of the bundle (in bytes) at which the bundler is flushed. The default is DefaultBundleByteThreshold.
func WithBundleCountThreshold ¶
WithBundleCountThreshold sets the max number of items after which the bundler is flushed. The default is DefaultBundleCountThreshold.
func WithDelayThreshold ¶
WithDelayThreshold sets the interval at which the bundler is flushed. The default is DefaultDelayThreshold.