Documentation ¶
Index ¶
- func NewSCNInfo() *scnInfo
- type NodeInfo
- type NodeMgr
- func (n *NodeMgr) AddNSCNNode(node dtype.NodeInfo)
- func (n *NodeMgr) GetSCNNodeListAll(nodes *[(config.MAX_SC) * config.MAX_SC_PEER]dtype.NodeInfo)
- func (n *NodeMgr) GetSCNNodeListbyDistance(sc int, oid string, nodes *[config.MAX_SC_PEER]dtype.NodeInfo) bool
- func (n *NodeMgr) GetTargetList(sc int, nodes *[config.MAX_SC_PEER]dtype.NodeInfo) bool
- func (n *NodeMgr) SetHttpRouter(m *mux.Router)
- func (n *NodeMgr) UpdatePeerList(sim *dtype.NodeInfo, local *dtype.NodeInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSCNInfo ¶
func NewSCNInfo() *scnInfo
Types ¶
type NodeInfo ¶
type NodeInfo struct {
// contains filtered or unexported fields
}
func NodeInfoInst ¶
func NodeInfoInst() *NodeInfo
func (*NodeInfo) GetLocalddr ¶
func (*NodeInfo) GetSimAddr ¶
func (*NodeInfo) SetLocalddrIP ¶
func (*NodeInfo) SetLocalddrParam ¶
func (*NodeInfo) SetSimAddr ¶
type NodeMgr ¶
type NodeMgr struct {
// contains filtered or unexported fields
}
func NodeMgrInst ¶
func NodeMgrInst() *NodeMgr
func (*NodeMgr) AddNSCNNode ¶
func (*NodeMgr) GetSCNNodeListAll ¶
func (*NodeMgr) GetSCNNodeListbyDistance ¶
func (*NodeMgr) GetTargetList ¶
func (*NodeMgr) SetHttpRouter ¶
Click to show internal directories.
Click to hide internal directories.