mirror of
https://github.com/lightninglabs/faraday.git
synced 2026-08-13 12:33:35 +02:00
Move the gRPC/REST server lifecycle, macaroon service management, and TLS setup from frdrpcserver.RPCServer to a new Faraday struct in the faraday package. This leaves RPCServer as a pure RPC request handler with only business logic methods. The Faraday struct embeds *frdrpcserver.RPCServer and takes ownership of all infrastructure concerns: gRPC/REST server creation, macaroon service setup, TLS configuration, and start/stop lifecycle. The frdrpcserver.Config is slimmed down to just Lnd and BitcoinClient. The macaroons.go file is also moved from frdrpcserver to the faraday package, as the macaroon constants are now used by the Faraday struct directly. |
||
|---|---|---|
| .. | ||
| perms | ||
| channel_insights.go | ||
| close_recommendations.go | ||
| close_report.go | ||
| exchange_rate.go | ||
| exchange_rate_test.go | ||
| log.go | ||
| node_audit.go | ||
| revenue_report.go | ||
| rpcserver.go | ||
| validate.go | ||