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

Function New

shock-server/node/node.go:82–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func New() (node *Node) {
83 node = new(Node)
84 node.Indexes = make(map[string]*IdxInfo)
85 node.File.Checksum = make(map[string]string)
86 node.setId()
87 return
88}
89
90func (node *Node) DBInit() {
91 node.File.Locked = locker.FileLockMgr.Get(node.Id)

Callers 2

CreateNodeUploadFunction · 0.70
CreateNodesFromArchiveFunction · 0.70

Calls 1

setIdMethod · 0.80

Tested by

no test coverage detected