bfp

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMaxSize = 1 * 1024 * 1024 // 1MB

Functions

This section is empty.

Types

type BufferedProcessor

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

func New

func New(options ...Option) *BufferedProcessor

func (*BufferedProcessor) Process

func (b *BufferedProcessor) Process(name string, process func(bufferedFile string) error) (n int, err error)

type Option

type Option func(reader *BufferedProcessor) *BufferedProcessor

func WithLogger

func WithLogger(logger *slog.Logger) Option

WithLogger will configure the logger for the reader

func WithMaxSize

func WithMaxSize(maxSize int) Option

WithMaxSize will configure max size in bytes for the HTTP requests

Jump to

Keyboard shortcuts

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