github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/libkb/connectivity_monitor.go (about)

     1  package libkb
     2  
     3  import (
     4  	context "golang.org/x/net/context"
     5  )
     6  
     7  type NullConnectivityMonitor struct {
     8  }
     9  
    10  func (s NullConnectivityMonitor) IsConnected(ctx context.Context) ConnectivityMonitorResult {
    11  	return ConnectivityMonitorYes
    12  }
    13  
    14  func (s NullConnectivityMonitor) CheckReachability(ctx context.Context) error {
    15  	return nil
    16  }
    17  
    18  var _ ConnectivityMonitor = NullConnectivityMonitor{}