mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
13 lines
311 B
Go
13 lines
311 B
Go
package pkg
|
|
|
|
import "time"
|
|
|
|
// Resolver resolves an upstream IP address for a given upstream host
|
|
type Resolver interface {
|
|
// Start any polling or connections required to resolve
|
|
Start()
|
|
|
|
// Get an IP address using an asynchronous operation
|
|
Get(upstream string, got chan<- string, timeout time.Duration)
|
|
}
|