How kickhead13/axadb works
axaDB is a Go document-oriented database with a CLI for initialization, server startup, and client connections. The documented user workflow is to configure encryption keys, initialize a database, start the server, then connect and issue commands; shutdown is also documented, though the shown CLI dispatcher does not handle halt. Server command execution and some storage behavior are unsampled, so those links are omitted or marked unverified rather than inferred. The shown excerpts establish initialization, client/server framing, encryption, and parts of command handling.
Main entry points: main.go CLI dispatcher · commands_handling.go Command handlers · parsers Argument and JSON parsers · axa_init.go Database initialization
Components 14
CLI entry
- CLI dispatcher
src/main.go - Argument and JSON parsers
src/parsers
Database lifecycle
- Database initialization
src/axa_init/axa_init.go - Client connection
src/axa_connect/axa_connect.go - Server halt
src/axa_server/server.go
Server and commands
- TCP server
src/axa_server/server.go - Command handlers
src/axa_server/commands_handling.go - Command execution
src/axa_server/executioner.go
Storage and security
- Database files
src/fs/files.go - File reads
src/fs/read.go - Encryption and hashes
src/axa_security/encryption.go - Encryption settings
src/axa_security/environ.go
Other components
- Operator/client
- TCP clients
Connections 19
- Operator/client → CLI dispatcher: runs
src/main.go - CLI dispatcher → Argument and JSON parsers: parses arguments
src/main.go - CLI dispatcher → Database initialization: dispatches init
src/main.go - CLI dispatcher → Client connection: dispatches connect
src/main.go - CLI dispatcher → TCP server: starts server
src/main.go - Database initialization → Argument and JSON parsers: parses options
src/axa_init/axa_init.go - Database initialization → Database files: creates database files
src/axa_init/axa_init.go - Database files → Encryption and hashes: encrypts file contents
src/fs/files.go - Encryption and hashes → Encryption settings: reads key settings
src/axa_security/encryption.go - Client connection → Argument and JSON parsers: parses options
src/axa_connect/axa_connect.go - Client connection → TCP clients: sends framed commands
src/axa_connect/axa_connect.go - TCP clients → TCP server: opens TCP connection
src/axa_server/server.go - TCP server → Command execution: starts worker
src/axa_server/server.go - Command execution → Command handlers: dispatches commands
- Command handlers → Argument and JSON parsers: parses JSON
src/axa_server/commands_handling.go - Command handlers → Database files: reads and writes data
src/axa_server/commands_handling.go - Command handlers → Encryption and hashes: hashes passwords
src/axa_server/commands_handling.go - Command handlers → File reads: reads stored data
- Operator/client → Server halt: requests shutdown
README.md