func isPortOpen()

in controllers/healthcheck.go [132:144]


func isPortOpen(ctx context.Context, endpoint string) bool {
	conn, err := net.DialTimeout("tcp", endpoint, portCheckTimeout)
	if err != nil {
		return false
	}

	if conn != nil {
		conn.Close()
		return true
	}

	return false
}