MCPcopy Create free account
hub / github.com/DNAProject/DNA / newNgbNodeInfo

Function newNgbNodeInfo

http/nodeinfo/server.go:60–63  ·  view source on GitHub ↗
(ngbId string, ngbType string, ngbAddr string, httpInfoAddr string, httpInfoPort uint16, httpInfoStart bool, ngbVersion string)

Source from the content-addressed store, hash-verified

58var templates = template.Must(template.New("info").Parse(TEMPLATE_PAGE))
59
60func newNgbNodeInfo(ngbId string, ngbType string, ngbAddr string, httpInfoAddr string, httpInfoPort uint16, httpInfoStart bool, ngbVersion string) *NgbNodeInfo {
61 return &NgbNodeInfo{NgbId: ngbId, NgbType: ngbType, NgbAddr: ngbAddr, HttpInfoAddr: httpInfoAddr,
62 HttpInfoPort: httpInfoPort, HttpInfoStart: httpInfoStart, NgbVersion: ngbVersion}
63}
64
65func initPageInfo(blockHeight uint32, curNodeType string, ngbrCnt int, ngbrsInfo []NgbNodeInfo) (*Info, error) {
66 id := fmt.Sprintf("0x%x", node.GetID())

Callers 1

viewHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected