Technical Documentation

February 18, 2026 ยท View on GitHub

Reference by feature.

Directory Structure

magento.GO/
  main.go
  api/          # REST & GraphQL handlers
  graphql/      # Schema, resolvers, models, registry
  custom/       # Extensions (gqlregistry.Register)
  model/
    entity/     # GORM models
    repository/ # DB access
  service/      # Business logic
  config/
  cron/         # Scheduled jobs
  cmd/          # CLI (graphql, cron)

Documentation by Feature

FeatureDoc
Installation, runninginstallation.md
REST API, endpointsrest-api.md
GraphQLgraphql.md
EAV products, flatteningeav-products.md
Cache, performancecache.md
Global cache & registryregistry.md
Cron jobscron.md
Production, daemonproduction.md
Extendingextending.md

Architecture

Package Architecture

  • Entity (model/entity/): GORM structs
  • Repository (model/repository/): CRUD, queries
  • Service (service/): Business logic
  • API (api/): HTTP handlers