INNER CODE UNIT · Go

NodeWithServiceInfo

pojol/braid · core/node.go:35

func NodeWithServiceInfo(ip string, port int) NodeOption {
	return func(p *NodeParm) {
		p.Ip = ip
		p.Port = port
	}
}

func NodeWithID(id string) NodeOption {
	return func(np *NodeParm) {
		np.ID = id
	}
}

func NodeWithWeight(weight int) NodeOption {
	return func(np *NodeParm) {
		np.Weight = weight
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…