Documentation
¶
Index ¶
Constants ¶
View Source
const (
MAX_TIMEOUT = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Name() string //Creates a new parralel procedure to watch for changes Discover(context.Context, string) (<-chan Change, error) }
func CreateBackend ¶
type Client ¶
type Client interface { DiscoverOnce(string) ([]*Service, error) Discover(string) (Discovery, error) Close() error }
func NewFromEnv ¶
type ConsulBackend ¶
type ConsulBackend struct {
// contains filtered or unexported fields
}
func (*ConsulBackend) Name ¶
func (b *ConsulBackend) Name() string
type DNSBackend ¶
type DNSBackend struct {
// contains filtered or unexported fields
}
func (*DNSBackend) Name ¶
func (b *DNSBackend) Name() string
Click to show internal directories.
Click to hide internal directories.