~egtann/lanhttp

app-layer internal service communication for srp
967092d4 — Evan Tann 4 months ago
add isc license
fe5469e7 — Evan Tann 4 months ago
update module name
3d0a36d4 — Evan Tann 10 months ago
fix goroutine leak

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~egtann/lanhttp
read/write
git@git.sr.ht:~egtann/lanhttp

You can also use your local clone with git send-email.

lanhttp

lanhttp wraps http.Client to automatically route internal traffic (denoted by *.internal) URLs to internal endpoints, and route other traffic normally over the internet. This is an alternative to consul and other DNS-level routing.

It distributes traffic randomly among the internal IPs.

Usage

import "egt.run/lanhttp"