# README
go-consul-instance-manager
Библиотека для отслеживания состояния экземпляров какого-либо сервиса через Hashicorp Consul.
Пример использования
см. в директории /example
Консистентное хэширование
В основе механизма определения держателя ключа (метод iman.GetDataOwner(key)
) лежит механизм консистентного хэширования на основе хэш-кольца. Подробнее можно почитать ЗДЕСЬ и ЗДЕСЬ.
Диаграмма классов
instance status
# Functions
Creates new client to operate with.
ParseInstanceStatus attempts to convert a string to a InstanceStatus.
No description provided by the author
Sets custon consul client to operate with.
Sets duration, for which node will be marked as pending before being removed from instances list.
Sets custom logger.
Sets interval to check instances list.
# Constants
InstanceStatusAlive is a InstanceStatus of type Alive.
InstanceStatusPending is a InstanceStatus of type Pending.
# Variables
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
ENUM(alive, pending).