crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
3bbc0e65
ROOT
/
go
/
libraries
/
doltcore
/
remotesrv
/
http.go
Search
History
376 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ErrReadOutOfBounds
filehandler
dbCache
:
DBCache
fs
:
filesys.Filesys
readOnly
:
bool
lgr
:
*logrus.Entry
sealer
:
Sealer
ServeHTTP
(respWr http.ResponseWriter, req *http.Request)
newFileHandler
(lgr *logrus.Entry, dbCache DBCache, fs filesys.Filesys, readOnly bool, sealer Sealer)
:
filehandler
readTableFile
(logger *logrus.Entry, path string, respWr http.ResponseWriter, rangeStr string)
:
int
uploadreader
r
:
io.ReadCloser
totalread
:
int
expectedread
:
uint64
expectedsum
:
[]byte
checksum
:
gohash.Hash
errBodyLengthTFDMismatch
errBodyHashTFDMismatch
writeTableFile
(ctx context.Context, logger *logrus.Entry, dbCache DBCache, path, fileId string, numChunks int, contentHash []byte, contentLength uint64, body io.ReadCloser)
:
int
offsetAndLenFromRange
(rngStr string)
:
(int64, int64, error)
getFileReader
(path string)
:
(io.ReadCloser, int64, error)
openFile
(path string)
:
(*os.File, int64, error)
closerReaderWrapper
io.Reader
io.Closer
getFileReaderAt
(path string, offset int64, length int64)
:
(io.ReadCloser, error)
*uploadreader
Read
(p []byte)
:
(n int, err error)
Close
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover