Help us shape the future of Go! Take the 2026 Go Developer Survey

objectlimits

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinFOCUploadSize = int64(chain.MinUploadSize)
	MaxFOCUploadSize = int64(chain.MaxUploadSize)
)

Variables

View Source
var (
	ErrTooSmall = errors.New("object size below FOC minimum")
	ErrTooLarge = errors.New("object size above FOC maximum")
)

Functions

func LimitFOCUploadReader

func LimitFOCUploadReader(r io.Reader) io.Reader

func ValidateFOCUploadSize

func ValidateFOCUploadSize(size int64) error

Types

type SizeError

type SizeError struct {
	Size int64
	Err  error
}

func (*SizeError) Error

func (e *SizeError) Error() string

func (*SizeError) Unwrap

func (e *SizeError) Unwrap() error

Jump to

Keyboard shortcuts

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