INNER CODE UNIT · Go
NodeWithIP
pojol/braid · core/node.go:66
func NodeWithIP(ip string) NodeOption {
return func(np *NodeParm) {
np.Ip = ip
}
}
func NodeWithPort(port int) NodeOption {
return func(np *NodeParm) {
np.Port = port
}
}
func NodeWithTracer(t tracer.ITracer) NodeOption {
return func(np *NodeParm) {
np.Tracer = t
}
}