Files
steampipe/pkg/pluginmanager_service/grpc/proto/simple_addr.go
kaidaguerre 40804a3201 Execute RefreshConnections asyncronously and optimise for high connection count. Add connection_state table.
- 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
2023-05-10 09:05:08 +01:00

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
}