mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-22 19:49:28 +00:00
book/architecture: add resource index (#268)
Some checks failed
Architecture mdBook / build (push) Has been cancelled
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
Some checks failed
Architecture mdBook / build (push) Has been cancelled
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* resource index * index * cap * cleanup
This commit is contained in:
parent
92800810d9
commit
01625535fa
17 changed files with 107 additions and 13 deletions
|
@ -93,17 +93,20 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
- [⚪️ Resource model](resource-model/intro.md)
|
- [⚪️ Resources](resources/intro.md)
|
||||||
- [⚪️ File system](resource-model/file-system.md)
|
- [⚪️ File system](resources/fs/intro.md)
|
||||||
- [⚪️ Sockets](resource-model/sockets.md)
|
- [🟡 Index of PATHs](resources/fs/paths.md)
|
||||||
- [⚪️ Memory](resource-model/memory.md)
|
- [⚪️ Sockets](resources/sockets/index.md)
|
||||||
- [🟡 Concurrency and parallelism](resource-model/concurrency-and-parallelism/intro.md)
|
- [🔴 Index of ports](resources/sockets/ports.md)
|
||||||
- [⚪️ Map](resource-model/concurrency-and-parallelism/map.md)
|
- [⚪️ Memory](resources/memory.md)
|
||||||
- [⚪️ The RPC server](resource-model/concurrency-and-parallelism/the-rpc-server.md)
|
- [🟡 Concurrency and parallelism](resources/cap/intro.md)
|
||||||
- [⚪️ The database](resource-model/concurrency-and-parallelism/the-database.md)
|
- [⚪️ Map](resources/cap/map.md)
|
||||||
- [⚪️ The block downloader](resource-model/concurrency-and-parallelism/the-block-downloader.md)
|
- [⚪️ The RPC server](resources/cap/the-rpc-server.md)
|
||||||
- [⚪️ The verifier](resource-model/concurrency-and-parallelism/the-verifier.md)
|
- [⚪️ The database](resources/cap/the-database.md)
|
||||||
- [⚪️ Thread exit](resource-model/concurrency-and-parallelism/thread-exit.md)
|
- [⚪️ The block downloader](resources/cap/the-block-downloader.md)
|
||||||
|
- [⚪️ The verifier](resources/cap/the-verifier.md)
|
||||||
|
- [⚪️ Thread exit](resources/cap/thread-exit.md)
|
||||||
|
- [🔴 Index of threads](resources/cap/threads.md)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
# ⚪️ Resource model
|
|
|
@ -1 +0,0 @@
|
||||||
# ⚪️ Sockets
|
|
2
books/architecture/src/resources/cap/threads.md
Normal file
2
books/architecture/src/resources/cap/threads.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Index of threads
|
||||||
|
This is an index of all of the system threads Cuprate actively uses.
|
87
books/architecture/src/resources/fs/paths.md
Normal file
87
books/architecture/src/resources/fs/paths.md
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
# Index of PATHs
|
||||||
|
This is an index of all of the filesystem PATHs Cuprate actively uses.
|
||||||
|
|
||||||
|
The [`cuprate_helper::fs`](https://doc.cuprate.org/cuprate_helper/fs/index.html)
|
||||||
|
module defines the general locations used throughout Cuprate.
|
||||||
|
|
||||||
|
[`dirs`](https://docs.rs/dirs) is used internally, which follows
|
||||||
|
the PATH standards/conventions on each OS Cuprate supports, i.e.:
|
||||||
|
- the [XDG base directory](https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html) and the [XDG user directory](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/) specifications on Linux
|
||||||
|
- the [Known Folder](https://msdn.microsoft.com/en-us/library/windows/desktop/bb776911(v=vs.85).aspx) system on Windows
|
||||||
|
- the [Standard Directories](https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW6) on macOS
|
||||||
|
|
||||||
|
## Cache
|
||||||
|
Cuprate's cache directory.
|
||||||
|
|
||||||
|
| OS | PATH |
|
||||||
|
|---------|-----------------------------------------|
|
||||||
|
| Windows | `C:\Users\Alice\AppData\Local\Cuprate\` |
|
||||||
|
| macOS | `/Users/Alice/Library/Caches/Cuprate/` |
|
||||||
|
| Linux | `/home/alice/.cache/cuprate/` |
|
||||||
|
|
||||||
|
## Config
|
||||||
|
Cuprate's config directory.
|
||||||
|
|
||||||
|
| OS | PATH |
|
||||||
|
|---------|-----------------------------------------------------|
|
||||||
|
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\` |
|
||||||
|
| macOS | `/Users/Alice/Library/Application Support/Cuprate/` |
|
||||||
|
| Linux | `/home/alice/.config/cuprate/` |
|
||||||
|
|
||||||
|
## Data
|
||||||
|
Cuprate's data directory.
|
||||||
|
|
||||||
|
| OS | PATH |
|
||||||
|
|---------|-----------------------------------------------------|
|
||||||
|
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\` |
|
||||||
|
| macOS | `/Users/Alice/Library/Application Support/Cuprate/` |
|
||||||
|
| Linux | `/home/alice/.local/share/cuprate/` |
|
||||||
|
|
||||||
|
## Blockchain
|
||||||
|
Cuprate's blockchain directory.
|
||||||
|
|
||||||
|
| OS | PATH |
|
||||||
|
|---------|----------------------------------------------------------------|
|
||||||
|
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\blockchain\` |
|
||||||
|
| macOS | `/Users/Alice/Library/Application Support/Cuprate/blockchain/` |
|
||||||
|
| Linux | `/home/alice/.local/share/cuprate/blockchain/` |
|
||||||
|
|
||||||
|
## Transaction pool
|
||||||
|
Cuprate's transaction pool directory.
|
||||||
|
|
||||||
|
| OS | PATH |
|
||||||
|
|---------|------------------------------------------------------------|
|
||||||
|
| Windows | `C:\Users\Alice\AppData\Roaming\Cuprate\txpool\` |
|
||||||
|
| macOS | `/Users/Alice/Library/Application Support/Cuprate/txpool/` |
|
||||||
|
| Linux | `/home/alice/.local/share/cuprate/txpool/` |
|
||||||
|
|
||||||
|
## Database
|
||||||
|
Cuprate's database location/filenames depend on:
|
||||||
|
|
||||||
|
- Which database it is
|
||||||
|
- Which backend is being used
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
`cuprate_blockchain` files are in the above mentioned `blockchain` folder.
|
||||||
|
|
||||||
|
`cuprate_txpool` files are in the above mentioned `txpool` folder.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
If the `heed` backend is being used, these files will be created:
|
||||||
|
|
||||||
|
| Filename | Purpose |
|
||||||
|
|------------|--------------------|
|
||||||
|
| `data.mdb` | Main data file |
|
||||||
|
| `lock.mdb` | Database lock file |
|
||||||
|
|
||||||
|
For example: `/home/alice/.local/share/cuprate/blockchain/lock.mdb`.
|
||||||
|
|
||||||
|
If the `redb` backend is being used, these files will be created:
|
||||||
|
|
||||||
|
| Filename | Purpose |
|
||||||
|
|-------------|--------------------|
|
||||||
|
| `data.redb` | Main data file |
|
||||||
|
|
||||||
|
For example: `/home/alice/.local/share/cuprate/txpool/data.redb`.
|
1
books/architecture/src/resources/intro.md
Normal file
1
books/architecture/src/resources/intro.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Resources
|
1
books/architecture/src/resources/sockets/index.md
Normal file
1
books/architecture/src/resources/sockets/index.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Sockets
|
2
books/architecture/src/resources/sockets/ports.md
Normal file
2
books/architecture/src/resources/sockets/ports.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Index of ports
|
||||||
|
This is an index of all of the network sockets Cuprate actively uses.
|
Loading…
Reference in a new issue