Oliver Gugger
57c40e5ad8
subservers: add Impl to subservers, GetServer to mgr
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
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
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
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
d02749a5a1
subservers: add new package to manage the lit subservers
2023-05-01 00:15:56 -07:00