Documentation ¶
Index ¶
- func NewDir(fs http.FileSystem, bytesPerSecond int64, logger *logger.Logger) http.FileSystem
- func NewFile(f http.File, bytesPerSecond int64, logger *logger.Logger) http.File
- func NewHTTPDir(path string, bytesPerSecond int64, logger *logger.Logger) http.FileSystem
- func NewReader(r io.Reader, bytesPerSecond int64, logger *logger.Logger) io.Reader
- func NewReaderAt(ra io.ReaderAt, bytesPerSecond int64, logger *logger.Logger) io.ReaderAt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDir ¶
func NewDir(fs http.FileSystem, bytesPerSecond int64, logger *logger.Logger) http.FileSystem
NewDir create a limit http.FileSystem that wrap the real http.FileSystem.
func NewHTTPDir ¶
NewHTTPDir create a limit http.FileSystem that wrap the real http.Dir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.