mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-22 11:28:50 -05:00
- Execute RefreshConnections asyncronously - Add connection_state table to indicate the loading state of connections - Optimise RefreshConnections by cloning connection schemas - Add locking to ensure only a single instance of RefreshConnections runs - Start executing queries without waiting for connections to load, add smart error handling to wait for required connection - Optimise autocomplete for high connection count - Autocomplete and inspect data available before all conections are refreshed - Update file watcher to respond to CHMOD, so thaat it pickes up deletion of file contents Closes #3394 Closes #3267
25 lines
405 B
Go
25 lines
405 B
Go
package proto
|
|
|
|
import "net"
|
|
|
|
type SimpleAddr struct {
|
|
NetworkString string `json:"network"`
|
|
AddressString string `json:"string"`
|
|
}
|
|
|
|
func NewSimpleAddr(addr net.Addr) *SimpleAddr {
|
|
return &SimpleAddr{
|
|
NetworkString: addr.Network(),
|
|
AddressString: addr.String(),
|
|
}
|
|
}
|
|
|
|
func (s SimpleAddr) Network() string {
|
|
return s.NetworkString
|
|
|
|
}
|
|
|
|
func (s SimpleAddr) String() string {
|
|
return s.AddressString
|
|
}
|