summaryrefslogtreecommitdiff
path: root/crates/arti-relay/src/builder.rs
Commit message (Collapse)AuthorAgeFilesLines
* arti-relay: add and use `Error`/`ErrorDetail`Steven Engler2024-09-051-2/+3
| | | | | | | | | | | | Most of this is copied from `arti_client::err`, but with a lot of stuff removed to simplify the error types (for example no `error_detail` feature handling). I tried to keep things generally consistent with arti-client so that error handling will be similar in both crates. `TorRelayBuilder::create()` will likely need to be fallible in the future (for example if spawning a task for the OR port listener fails), so it now returns a `Result<TorRelay, crate::err::Error>` instead of just a `TorRelay`.
* arti-relay: pass config in `TorRelay::create_inner`Steven Engler2024-09-031-2/+1
|
* relay: Add basic configuration and builderDavid Goulet2024-08-201-0/+33
This adds the basic TorRelayConfig object along a builder in order to create a TorRelay object. At this commit, the configuration object only holds a "StorageConfig" which is a simple starting point which will allow to expand to a KeyMgr and then a ChanMgr along more configuration. There is also no custom Error for the crate at this point. Fixes #1534 Signed-off-by: David Goulet <[email protected]>