Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • arti arti
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • eta
  • artiarti
  • Merge requests
  • !1

tor-client: refactor TorClient::bootstrap's args into a config object

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed eta requested to merge eta/tor-client-config into main Oct 19, 2021
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 7

The three arguments TorClient::bootstrap requires by way of configuration have been factored into a new TorClientConfig object.

This object gains two associated functions: one which uses tor_config's CfgPath machinery to generate sane defaults for the state and cache directories, and one that accepts said directories in order to create a config object with those inserted.

(this commit was inspired by trying to use arti as a library and being somewhat overwhelmed by the amount of config stuff there was to do :p)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: eta/tor-client-config