New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com.github.brymck:get-local-endpoint

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.brymck:get-local-endpoint

Retrieve endpoints from environment variables

  • 0.9.3
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

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);

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc