How go-gitea/gitea works
Gitea is a self-hosted, all-in-one development service. The principal workflow begins with a user or Git client reaching the web server, which authenticates the request and coordinates repository, issue, review, project, package, or Actions operations. Results are persisted in the relational database and Git/object storage, then rendered or delivered through the web interface. The graph also preserves documented automation, search, collaboration, administration, migration, and diagnostics capabilities. Several application routes are represented from directory responsibilities; sampled excerpts chiefly confirm persistence, storage, queues, and operational wiring.
Main entry points: web.go Web Server · engine.go Database Engine · storage.go Object Storage Layer · workflows.go Actions Workflows
Components 26
Entry And Identity
- Web Server
cmd/web.go - Authentication
modules/auth/common.go
Code Collaboration
- Repositories
models/repo/repo.go - Git Operations
modules/git/git.go - Issues And Reviews
models/issues/issue.go - Teams And Organizations
models/organization/org.go - Project Boards
models/project/project.go - Repository Wiki
models/repo/wiki.go - Code Search
modules/indexer/code/indexer.go
Automation Delivery
- Actions Workflows
modules/actions/workflows.go - Package Registry
models/packages/package.go - Webhooks
models/webhook/webhook.go - Managed Queues
modules/queue/manager.go
Platform Persistence
- Database Engine
models/db/engine.go - Object Storage Layer
modules/storage/storage.go - Storage Configuration
modules/setting/storage.go
Administration Operations
- Administration
cmd/admin.go - Model Migrations
modelmigration/migrations.go - Storage Doctor
services/doctor/storage.go - Process Diagnostics
routers/private/manager_process.go
Other components
- User
- Git Client
- Action Runner
- Relational Database
- Object Storage
- Mail Provider
Connections 33
- User → Web Server: sends requests
- Git Client → Web Server: pushes and fetches
- Web Server → Authentication: authenticates requests
- Web Server → Repositories: dispatches repository work
- Web Server → Issues And Reviews: dispatches collaboration
- Web Server → Actions Workflows: dispatches automation
- Web Server → Package Registry: dispatches packages
- Web Server → Teams And Organizations: dispatches organization work
- Web Server → Project Boards: dispatches project work
- Web Server → Repository Wiki: dispatches wiki work
- Web Server → Code Search: dispatches searches
- Authentication → Database Engine: reads and writes
- Repositories → Git Operations: manages repositories
- Repositories → Database Engine: persists metadata
- Git Operations → Object Storage: stores Git data
- Issues And Reviews → Database Engine: persists issues
- Teams And Organizations → Database Engine: persists memberships
- Project Boards → Database Engine: persists boards
- Repository Wiki → Git Operations: stores wiki history
- Code Search → Database Engine: indexes records
- Actions Workflows → Managed Queues: queues tasks
- Actions Workflows → Object Storage Layer: stores logs and artifacts
- Actions Workflows → Action Runner: dispatches jobs
- Package Registry → Object Storage Layer: stores package blobs
- Package Registry → Database Engine: persists package metadata
- Webhooks → Mail Provider: sends notifications
- Database Engine → Relational Database: executes SQL
- Storage Configuration → Object Storage Layer: configures storage
- Object Storage Layer → Object Storage: reads and writes objects
- Administration → Authentication: manages accounts
- Model Migrations → Database Engine: migrates schemas
- Storage Doctor → Object Storage Layer: checks orphaned objects
- Process Diagnostics → Process Diagnostics: reports processes