get-local-endpoint

Retrieve endpoints from environment variables

Лицензия

Лицензия

Группа

Группа

com.github.brymck
Идентификатор

Идентификатор

get-local-endpoint
Последняя версия

Последняя версия

0.9.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

get-local-endpoint
Retrieve endpoints from environment variables
Ссылка на сайт

Ссылка на сайт

https://github.com/brymck/get-local-endpoint
Система контроля версий

Система контроля версий

https://github.com/brymck/get-local-endpoint

Скачать get-local-endpoint

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.brymck/get-local-endpoint/ -->
<dependency>
    <groupId>com.github.brymck</groupId>
    <artifactId>get-local-endpoint</artifactId>
    <version>0.9.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.brymck/get-local-endpoint/
implementation 'com.github.brymck:get-local-endpoint:0.9.3'
// https://jarcasting.com/artifacts/com.github.brymck/get-local-endpoint/
implementation ("com.github.brymck:get-local-endpoint:0.9.3")
'com.github.brymck:get-local-endpoint:jar:0.9.3'
<dependency org="com.github.brymck" name="get-local-endpoint" rev="0.9.3">
  <artifact name="get-local-endpoint" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.brymck', module='get-local-endpoint', version='0.9.3')
)
libraryDependencies += "com.github.brymck" % "get-local-endpoint" % "0.9.3"
[com.github.brymck/get-local-endpoint "0.9.3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.jetbrains : annotations jar 15.0
org.slf4j : slf4j-api jar 1.7.25

test (5)

Идентификатор библиотеки Тип Версия
com.github.brymck : with-environment jar 0.9.1
org.junit.jupiter : junit-jupiter-api jar 5.5.2
org.junit.jupiter : junit-jupiter-engine jar 5.5.2
org.junit.jupiter : junit-jupiter-params jar 5.5.2
org.slf4j : slf4j-simple jar 1.7.25

Модули Проекта

Данный проект не имеет модулей.

get-local-endpoint

CircleCI codecov

get-local-endpoint is a library that allows retrieving endpoints from environment variables.

This is designed for use cases where the API endpoint is defined via environment variables, which allows decoupling of service paths from implementation.

A good example of this in action is Google's microservices demo, in particular with the frontend service, which calls the various backend services based on an environment-driven configuration.

Usage

Include this in your POM:

<dependency>
  <groupId>com.github.brymck</groupId>
  <artifactId>get-local-endpoint</artifactId>
  <version>0.9.3</version>
</dependency>

And use it as so:

String fooEndpoint = getHttpEndpoint("FOO_ADDRESS");
SomeApi api = new SomeApi(fooEndpoint);

Версии библиотеки

Версия
0.9.3
0.9.2
0.9.0