consulextension

package
v1.0.0-alpha-01-28-201... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInterval = "10s"

DefaultInterval time to perform health checks for services

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulAdapter

type ConsulAdapter struct {
	// contains filtered or unexported fields
}

ConsulAdapter implements consulapi client interface

func (*ConsulAdapter) Deregister

func (r *ConsulAdapter) Deregister(service *bridge.Service) error

Deregister will deregister ConsulAdapter's interface from RegistryAdapter

func (*ConsulAdapter) Ping

func (r *ConsulAdapter) Ping() error

Ping will try to connect to consul by attempting to retrieve the current leader.

func (*ConsulAdapter) Refresh

func (r *ConsulAdapter) Refresh(service *bridge.Service) error

Refresh - do nothing for now

func (*ConsulAdapter) Register

func (r *ConsulAdapter) Register(service *bridge.Service) error

Register will register ConsulAdapter's interface with RegistryAdapter

type Factory

type Factory struct{}

Factory implementation to implement RegistryAdapter interface functions

func (*Factory) New

func (f *Factory) New(uri *url.URL) bridge.RegistryAdapter

New function to register ConsulAdapter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL