MCPcopy Create free account
hub / github.com/MG-RAST/Shock / newChunkUploader

Function newChunkUploader

shock-client/chunk.go:29–39  ·  view source on GitHub ↗
(f string, c string)

Source from the content-addressed store, hash-verified

27}
28
29func newChunkUploader(f string, c string) (cu chunkUploader) {
30 cu = chunkUploader{
31 file: f,
32 name: path.Base(f),
33 }
34 cu.setMd5()
35 if c != "" {
36 cu.setSizes(c)
37 }
38 return
39}
40
41func (cu *chunkUploader) validateChunkNode(node *sc.ShockNode) (msg string) {
42 // basic check

Callers 1

mainFunction · 0.85

Calls 2

setMd5Method · 0.80
setSizesMethod · 0.80

Tested by

no test coverage detected