Documentation ¶
Index ¶
- type Register
- type Registry
- func (r *Registry) CreateEndpoints(endpoints *api.Endpoints) (*api.Endpoints, error)
- func (r *Registry) CreateService(service *api.Service) (*api.Service, error)
- func (r *Registry) DeleteEndpoints(name string) error
- func (r *Registry) DeleteService(name string) error
- func (r *Registry) GetEndpoints() ([]api.Endpoints, error)
- func (r *Registry) GetService(key string) (*api.Service, error)
- func (r *Registry) GetServiceEndpoints(key string) (*api.Endpoints, error)
- func (r *Registry) GetServices() ([]api.Service, error)
- func (r *Registry) WatchEndpoints(endpointsch chan []api.Endpoints)
- func (r *Registry) WatchServices(servicesch chan []api.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Register ¶
type Register interface { CreateService(service *api.Service) (*api.Service, error) GetService(key string) (*api.Service, error) GetServices() ([]api.Service, error) CreateEndpoints(endpoints *api.Endpoints) (*api.Endpoints, error) GetServiceEndpoints(name string) (*api.Endpoints, error) GetEndpoints() ([]api.Endpoints, error) WatchServices(services chan []api.Service) WatchEndpoints(endpoints chan []api.Endpoints) DeleteService(name string) error DeleteEndpoints(name string) error }
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) CreateEndpoints ¶
CreateEndpoints stores endpoints implemented by a service endpoints are stored like "/flow/endpoints/{name}/host:port"
func (*Registry) CreateService ¶
CreateService stores a new service to the registry
func (*Registry) DeleteEndpoints ¶
func (*Registry) DeleteService ¶
func (*Registry) GetEndpoints ¶
GetEndpoints retrieves all endpoints stored in the registry
func (*Registry) GetService ¶
GetService retrieves a service from the registry
func (*Registry) GetServiceEndpoints ¶
GetServiceEndpoints retrieves the endpoints from a service by its keyspace
func (*Registry) WatchEndpoints ¶
func (*Registry) WatchServices ¶
Click to show internal directories.
Click to hide internal directories.