bundler

package
v0.0.0-...-758c02f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*bundler.Bundler)

Option can be used to setup the bundler.

func WithBufferedByteLimit

func WithBufferedByteLimit(n int) Option

WithBufferedByteLimit sets the maximum number of bytes that the Bundler will keep in memory before returning ErrOverflow. The default is DefaultBufferedByteLimit.

func WithBundleByteLimit

func WithBundleByteLimit(n int) Option

WithBundleByteLimit sets the maximum size of a bundle, in bytes. Zero means unlimited. The default is DefaultBundleByteLimit.

func WithBundleByteThreshold

func WithBundleByteThreshold(n int) Option

WithBundleByteThreshold sets the max size of the bundle (in bytes) at which the bundler is flushed. The default is DefaultBundleByteThreshold.

func WithBundleCountThreshold

func WithBundleCountThreshold(n int) Option

WithBundleCountThreshold sets the max number of items after which the bundler is flushed. The default is DefaultBundleCountThreshold.

func WithDelayThreshold

func WithDelayThreshold(delay time.Duration) Option

WithDelayThreshold sets the interval at which the bundler is flushed. The default is DefaultDelayThreshold.

Jump to

Keyboard shortcuts

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