Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceRepository ¶
type ServiceRepository struct {
// contains filtered or unexported fields
}
ServiceRepository is consul-based implementation of registry.ServiceRepository
func NewServiceRepository ¶
func NewServiceRepository(consulAgent consulAgent) *ServiceRepository
NewServiceRepository creates new instance of ServiceRepository structure
func (*ServiceRepository) Deregister ¶
func (r *ServiceRepository) Deregister(serviceID string) error
Deregister removes service from consul
func (*ServiceRepository) GetAllIds ¶
func (r *ServiceRepository) GetAllIds() []string
GetAllIds return array of services ids registered in consul
Click to show internal directories.
Click to hide internal directories.