Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clnts (0.14 sec)

  1. internal/rest/client.go

    		HealthCheckReconnectUnit: 200 * time.Millisecond,
    		HealthCheckTimeout:       time.Second,
    	}
    	if err != nil {
    		clnt.lastErr = err
    		clnt.lastErrTime = time.Now()
    	}
    
    	if clnt.HealthCheckFn != nil {
    		// make connection pre-emptively.
    		go clnt.HealthCheckFn()
    	}
    	return clnt
    }
    
    // IsOnline returns whether the client is likely to be online.
    func (c *Client) IsOnline() bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
Back to top