Documentation
¶
Overview ¶
Package filex provides shared file and stream utilities for size-limited reads and DoS protection limits across CONGA packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileSizeLimitExceeded = errors.New("file size limit exceeded")
ErrFileSizeLimitExceeded indicates a file or stream exceeded the maximum allowed size limit.
Functions ¶
func ReadLimited ¶
ReadLimited reads the file at path up to maxBytes, returning ErrFileSizeLimitExceeded if exceeded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.