How resinat/resin works
Resin is a proxy-pool gateway: operators configure subscriptions and platform-specific pools, while client traffic enters through forward or reverse proxy endpoints and is routed to healthy outbound nodes with sticky account leases. The graph includes the management UI/API, subscription and topology lifecycle, probing and routing, proxy execution, and persistence/observability. Relationships among unsampled subsystems are limited to README-documented capabilities or imports visible in the source index; internal call details are not inferred.
Main entry points: main.go Runtime Bootstrap · pool.go Node Pool · reverse.go Proxy Execution · manager.go Health Probing
Components 19
Management
- Admin Web UI
webui/src/app/routes.tsx - Admin Features
webui/src/features - HTTP API
internal/api/server.go - Control Plane
internal/service
Pool Lifecycle
- Subscription Import
internal/subscription/parser.go - Node Pool
internal/topology/pool.go - Platform Policies
internal/platform/platform.go - Health Probing
internal/probe/manager.go
Proxy Traffic
- Sticky Router
internal/routing/router.go - Proxy Endpoints
cmd/resin/inbound_mux.go - Proxy Execution
internal/proxy/reverse.go - Outbound Manager
internal/outbound/manager.go
Operations
- Persistent State
internal/state/engine.go - Metrics
internal/metrics/manager.go - Request Logs
internal/requestlog/service.go - GeoIP Data
internal/geoip/geoip.go
Runtime
- Runtime Bootstrap
cmd/resin/main.go
Other components
- Operator
- Proxy Client
Connections 27
- Operator → Admin Web UI: configures
README.md - Admin Web UI → Admin Features: navigates
webui/src/app/routes.tsx - Admin Features → HTTP API: requests
- HTTP API → Control Plane: dispatches
internal/api/server.go - Control Plane → Subscription Import: manages
- Subscription Import → Node Pool: updates
- Control Plane → Platform Policies: configures
internal/service/control_plane_platform.go - Node Pool → Health Probing: supplies nodes
internal/probe/manager.go - Health Probing → Node Pool: updates health
internal/probe/manager.go - Proxy Client → Proxy Endpoints: sends traffic
README.md - Proxy Endpoints → Proxy Execution: dispatches
- Proxy Execution → Sticky Router: selects node
internal/proxy/reverse.go - Sticky Router → Platform Policies: applies policy
internal/routing/router.go - Proxy Execution → Outbound Manager: forwards traffic
internal/proxy/reverse.go - Outbound Manager → Node Pool: reads node
internal/outbound/manager.go - Runtime Bootstrap → HTTP API: initializes
cmd/resin/main.go - Runtime Bootstrap → Node Pool: initializes
cmd/resin/main.go - Runtime Bootstrap → Sticky Router: initializes
cmd/resin/main.go - Runtime Bootstrap → Outbound Manager: initializes
cmd/resin/main.go - Runtime Bootstrap → Health Probing: initializes
cmd/resin/main.go - Runtime Bootstrap → Persistent State: initializes
cmd/resin/main.go - Runtime Bootstrap → GeoIP Data: initializes
cmd/resin/main.go - Runtime Bootstrap → Metrics: initializes
cmd/resin/main.go - Runtime Bootstrap → Request Logs: initializes
cmd/resin/main.go - Persistent State → Node Pool: persists state
- Proxy Execution → Request Logs: records requests
internal/requestlog/service.go - Health Probing → GeoIP Data: uses lookup