Spaces:
Sleeping
Sleeping
Download test-clone/internal/stream/errors.go from codebydante/BrodyFileStreamBot: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/codebydante/BrodyFileStreamBot/resolve/bd894b382ed6a42e3879e3846027d7e6d427f3f2/test-clone/internal/stream/errors.go
- Command line
-
hf download hf://spaces/codebydante/BrodyFileStreamBot@bd894b382ed6a42e3879e3846027d7e6d427f3f2/test-clone/internal/stream/errors.go
-
curl -L -o errors.go https://huggingface.co/spaces/codebydante/BrodyFileStreamBot/resolve/bd894b382ed6a42e3879e3846027d7e6d427f3f2/test-clone/internal/stream/errors.go
457 Bytes
| package stream | |
| import "errors" | |
| var ( | |
| // the client disconnected before the stream completed. | |
| ErrStreamClosed = errors.New("stream closed by client") | |
| // a block fetch exceeded the timeout. | |
| ErrBlockTimeout = errors.New("block fetch timed out") | |
| // all retry attempts failed. | |
| ErrMaxRetriesExceeded = errors.New("max retries exceeded") | |
| // the pipe was closed and all data was consumed. | |
| ErrPipeDrained = errors.New("pipe drained") | |
| ) | |