filesystem

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Adapter for Filesystem-based Service Discovery

func New

func New(conf Config) (*Adapter, error)

New creates and initializes a new Filesystem-based Service Discovery adapter

func (*Adapter) ListInstances

func (a *Adapter) ListInstances() ([]*api.ServiceInstance, error)

ListInstances queries for the list of service instances currently registered.

func (*Adapter) ListServiceInstances

func (a *Adapter) ListServiceInstances(serviceName string) ([]*api.ServiceInstance, error)

ListServiceInstances queries for the list of service instances currently registered for the given service.

func (*Adapter) ListServices

func (a *Adapter) ListServices() ([]string, error)

ListServices queries for the list of services for which instances are currently registered.

type Config

type Config struct {
	Dir             string
	PollingInterval time.Duration
	Namespace       auth.Namespace
}

Config encapsulates FileSystem configuration parameters

Jump to

Keyboard shortcuts

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