コード例 #1
0
ファイル: api.go プロジェクト: kunalkushwaha/openstorage
// New returns an initialized Gossip node
// which identifies itself with the given ip
func New(ip string, selfNodeId types.NodeId) Gossiper {
	g := new(proto.GossiperImpl)
	g.Init(ip, selfNodeId)
	return g
}
コード例 #2
0
ファイル: api.go プロジェクト: pombredanne/openstorage
// New returns an initialized Gossip node
// which identifies itself with the given ip
func New(ip string, selfNodeId types.NodeId, genNumber uint64) Gossiper {
	g := new(proto.GossiperImpl)
	g.Init(ip, selfNodeId, genNumber)
	return g
}