controller-runtime: Index | Files

package addr

import ""


Package Files


func Suggest Uses

func Suggest() (port int, resolvedHost string, err error)

Suggest suggests an address a process can listen on. It returns a tuple consisting of a free port and the hostname resolved to its IP. It makes sure that new port allocated does not conflict with old ports allocated within 1 minute.

Package addr imports 4 packages (graph) and is imported by 7 packages. Updated 2020-08-04. Refresh now. Tools for package owners.