# Path: rep0st/framework/data/elasticsearch.py
# class ElasticsearchModule(Module):
#   hosts: List[str]
# 
#   def __init__(self, hosts: List[str]):
#     self.hosts = hosts
# 
#   @provider
#   @singleton
#   def provide_elasticsearch(self) -> Elasticsearch:
#     return Elasticsearch(
#         self.hosts,
#         sniff_on_start=True,
#         sniff_on_connection_fail=True,
#         sniffer_timeout=60)


from absl import flags
from injector import Module
from rep0st.framework.data.elasticsearch import ElasticsearchModule


FLAGS = flags.FLAGS
flags.DEFINE_multi_string(
    'rep0st_elasticsearch_uris', 'http://localhost:9200',

# Path: rep0st/framework/data/elasticsearch.py
# class ElasticsearchModule(Module):
#   hosts: List[str]
# 
#   def __init__(self, hosts: List[str]):
#     self.hosts = hosts
# 
#   @provider
#   @singleton
#   def provide_elasticsearch(self) -> Elasticsearch:
#     return Elasticsearch(
#         self.hosts,
#         sniff_on_start=True,
#         sniff_on_connection_fail=True,
#         sniffer_timeout=60)


# Path: rep0st/config/rep0st_elasticsearch.py
from absl import flags
from injector import Module
from rep0st.framework.data.elasticsearch import ElasticsearchModule



FLAGS = flags.FLAGS
flags.DEFINE_multi_string(
    'rep0st_elasticsearch_uris', 'http://localhost:9200',

    'Elasticsearch URIs used by rep0st to index features.')