...

Source file src/edge-infra.dev/pkg/edge/lighthouse/testutils/testutils.go

Documentation: edge-infra.dev/pkg/edge/lighthouse/testutils

     1  package testutils
     2  
     3  import (
     4  	"net"
     5  	"time"
     6  
     7  	"edge-infra.dev/pkg/lib/gcp/cloudsql"
     8  )
     9  
    10  type DialMe struct {
    11  	DB *cloudsql.EdgePostgres
    12  }
    13  
    14  func (d DialMe) ConnectionString() string {
    15  	return d.DB.ConnectionString(false)
    16  }
    17  
    18  func (d DialMe) Dial(network, address string) (net.Conn, error) {
    19  	return net.Dial(network, address)
    20  }
    21  
    22  func (d DialMe) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error) {
    23  	return net.DialTimeout(network, address, timeout)
    24  }
    25  

View as plain text