Commit graph

28 commits

Author SHA1 Message Date
Oliver Gugger
57c40e5ad8
subservers: add Impl to subservers, GetServer to mgr 2024-12-19 21:21:38 +01:00
Oliver Gugger
d368f8a8fe
multi: bump to lnd/tapd/lndclient v0.18.4-beta/v0.5.0-alpha 2024-12-19 21:21:38 +01:00
Elle Mouton
9655dc6fa2
status: return error if subserver already registered
Let the status manager first check its map of subservers before
registering a new one to ensure that an existing subserver is not being
overridden.
2024-10-21 10:25:06 +02:00
Elle Mouton
73cadc5253
subservers: use a map indexed by name for subservers
So that we can quickly access a sub-server by its name.
2024-10-21 10:20:00 +02:00
Elle Mouton
c68daf5981
go.mod: bump tapd and loop
tapd to 2bf18437 and loop to v0.28.6-beta
2024-07-26 08:32:12 +02:00
Viktor Tigerström
c06a9579b7
multi: bump taproot-assets, loop & LNC
Bump taproot-assets to version `v0.3.0-alpha` and loop to `v0.26.4-beta`
and lightning-node-connect to `v0.2.7-alpha`.
2023-10-18 18:45:17 +02:00
Viktor Tigerström
ec2a7a39b4
multi: add accounts service to status manager
Add the accounts service to status manager. This will allow us to query
the status of the accounts service and see if it is running or not.
For incoming gRPC requests to the accounts service, we also use the
status manager to check if the accounts service is running or not to
determine if we should let the request through or not.
2023-09-28 13:09:33 +02:00
Elle Mouton
21456a5887
subservers: add Handles method
Add a Handles method to the subserver Manager which takes a URI string
and returns true if one of the sub-servers it manages owns the given
URI.
2023-09-22 11:59:25 +02:00
Elle Mouton
3769467c24
subservers+terminal: integrate status server
Pass the status manager to the sub-server manager so that the sub-server
manager can inform the status manager of any sub-servers that have
started or failed to start.
2023-09-22 11:59:25 +02:00
Elle Mouton
b0931f49b0
multi: let subserver manager handle disabled sub-server
Modify the sub-server Manager's AddServer method to take an `enabled`
boolean so that it can handle what to do with a disabled sub-server.
This will come into play in a future commit which adds a status server.
2023-09-17 16:50:42 +02:00
Elle Mouton
15a69e0a11
perms+subservers: register subserver whitelisted urls with perms manager 2023-09-07 11:00:02 +02:00
Elle Mouton
1332106eef
subservers: add WhiteListedURLs to the SubServer interface
Add a new `WhiteListedURLs` method to the `SubServer` interface
so that Lit can easily collect the set of permissions from each
sub-server that does not require a macaroon.
2023-09-07 11:00:02 +02:00
Elle Mouton
078808fd81
subservers: register taproot assets universe servers
Register the taproot-assets universe gRPC and REST servers.
2023-06-14 07:47:42 +02:00
positiveblue
4be6ffb31f
multi: Add Taproot Assets subserver 2023-05-16 16:59:28 +02:00
Elle Mouton
ba3193b341
rpc_proxy+subservers: error out of GetRemoteConn if not ready
Due to the rpcProxy being started early now, it could be the case that a
call is made to `GetRemoteConn` before the remote connection has
actually been set up. This commit catches this case so that an error can
be returned and a panic avoided.
2023-05-03 10:26:11 +02:00
Elle Mouton
2a825f1009
multi: return error if connecting to remote sub-server fails 2023-05-03 08:51:45 +02:00
Elle Mouton
06bb73f62d
perms+subservers: let subserver register perms 2023-05-03 08:51:45 +02:00
Elle Mouton
ab8c022a5b
subservers: add Permissions method to the interface 2023-05-03 08:51:45 +02:00
Elle Mouton
53d0d8432e
subservers+terminal: move overwriting agent name 2023-05-03 08:51:45 +02:00
Elle Mouton
a3a5d636e6
subservers+terminal: let subserver mgr handle REST registrations 2023-05-03 08:51:44 +02:00
Elle Mouton
05c5268405
multi: add ReadRemoteMacaroon method to subserver manager 2023-05-03 08:51:44 +02:00
Elle Mouton
9eb01518e6
multi: add MacaroonPath method to subserver manager 2023-05-02 11:49:02 +02:00
Elle Mouton
0ab5cb750b
subservers: embed Subserver in subServerWrapper 2023-05-02 08:43:55 +02:00
Elle Mouton
f4ca4651ed
subservers: start using the subservers manager 2023-05-01 00:48:29 -07:00
Elle Mouton
3c95ab6693
subserver: add loop 2023-05-01 00:15:57 -07:00
Elle Mouton
5b1aa97b0b
subserver: add pool 2023-05-01 00:15:57 -07:00
Elle Mouton
046ec27ecb
subserver: add faraday 2023-05-01 00:15:57 -07:00
Elle Mouton
d02749a5a1
subservers: add new package to manage the lit subservers 2023-05-01 00:15:56 -07:00