App-layer internal service communication for srp
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-11 18:43:46 +01:00
go.mod update module path and urls 2026-09-11 18:43:46 +01:00
go.sum improve failure case, add helper 2019-09-15 06:52:05 -07:00
lanhttp.go fix goroutine leak 2019-09-25 15:42:01 -07:00
lanhttp_test.go swap to random load distribution algorithm 2019-09-18 17:53:27 -07:00
LICENSE replace isc license with agpl 2026-09-11 18:19:11 +01:00
README.md update module path and urls 2026-09-11 18:43:46 +01:00

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 "evantann.com/lanhttp"