Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
oni
command
Command oni is the OniWorks CLI — scaffold, migrate, serve, deploy, and more.
|
Command oni is the OniWorks CLI — scaffold, migrate, serve, deploy, and more. |
|
examples
|
|
|
api
command
Example: OniWorks REST API Demonstrates a minimal CRUD API with JWT auth, validation, and middleware.
|
Example: OniWorks REST API Demonstrates a minimal CRUD API with JWT auth, validation, and middleware. |
|
fullstack
command
Example: OniWorks Fullstack App Demonstrates HTTP + WebSocket + Vite frontend + Oni Memory + Queue + Mail.
|
Example: OniWorks Fullstack App Demonstrates HTTP + WebSocket + Vite frontend + Oni Memory + Queue + Mail. |
|
realtime-chat
command
Example: OniWorks Realtime Chat Demonstrates Oni Socket + Oni Memory for a cross-node realtime chat.
|
Example: OniWorks Realtime Chat Demonstrates Oni Socket + Oni Memory for a cross-node realtime chat. |
|
framework
|
|
|
admin
Package admin provides Oni Admin — an auto-generated CRUD management panel.
|
Package admin provides Oni Admin — an auto-generated CRUD management panel. |
|
app
Package app provides the IoC service container and application bootstrap.
|
Package app provides the IoC service container and application bootstrap. |
|
auth
Package auth provides session-based and JWT authentication for OniWorks.
|
Package auth provides session-based and JWT authentication for OniWorks. |
|
backup
Package backup provides database backup and restore utilities.
|
Package backup provides database backup and restore utilities. |
|
config
Package config provides environment and file-based configuration with type-safe accessors.
|
Package config provides environment and file-based configuration with type-safe accessors. |
|
database
Package database provides a high-performance query builder, struct scanner, lifecycle hooks, and explicit eager relationship loading for OniWorks.
|
Package database provides a high-performance query builder, struct scanner, lifecycle hooks, and explicit eager relationship loading for OniWorks. |
|
deploy
Package deploy manages Caddy as an automatic TLS reverse proxy.
|
Package deploy manages Caddy as an automatic TLS reverse proxy. |
|
errors
Package errors provides error handling utilities for OniWorks applications.
|
Package errors provides error handling utilities for OniWorks applications. |
|
frontend
Package frontend provides helpers for serving Vite-built frontend assets embedded in the Go binary via go:embed, plus a development proxy for hot-module reload during development.
|
Package frontend provides helpers for serving Vite-built frontend assets embedded in the Go binary via go:embed, plus a development proxy for hot-module reload during development. |
|
health
Package health provides an HTTP health-check endpoint and a registry for application-defined checks (database, queue, external services, etc.).
|
Package health provides an HTTP health-check endpoint and a registry for application-defined checks (database, queue, external services, etc.). |
|
http
Package http provides the HTTP kernel, context, request, and response abstractions.
|
Package http provides the HTTP kernel, context, request, and response abstractions. |
|
logging
Package logging provides structured logging helpers built on top of log/slog.
|
Package logging provides structured logging helpers built on top of log/slog. |
|
mail
Package mail provides a fluent email API backed by go-mail (SMTP).
|
Package mail provides a fluent email API backed by go-mail (SMTP). |
|
memory
Package memory provides the OniWorks distributed in-memory database.
|
Package memory provides the OniWorks distributed in-memory database. |
|
metrics
Package metrics provides a Prometheus-compatible metrics endpoint and built-in framework metrics (HTTP request duration, active connections, etc.).
|
Package metrics provides a Prometheus-compatible metrics endpoint and built-in framework metrics (HTTP request duration, active connections, etc.). |
|
middleware
Package middleware provides built-in OniWorks middleware.
|
Package middleware provides built-in OniWorks middleware. |
|
migrations
Package migrations provides the database migration runner and schema builder for OniWorks.
|
Package migrations provides the database migration runner and schema builder for OniWorks. |
|
queue
Package queue provides a lightweight job queue with in-memory and Redis drivers.
|
Package queue provides a lightweight job queue with in-memory and Redis drivers. |
|
realtime
Package realtime is the OniWorks realtime platform — the nervous system of the framework.
|
Package realtime is the OniWorks realtime platform — the nervous system of the framework. |
|
roles
Package roles provides a simple, performant RBAC (Role-Based Access Control) system.
|
Package roles provides a simple, performant RBAC (Role-Based Access Control) system. |
|
routing
Package routing provides a high-performance segment-based HTTP router.
|
Package routing provides a high-performance segment-based HTTP router. |
|
scheduler
Package scheduler wraps robfig/cron with a fluent API for defining scheduled tasks, named jobs, and graceful shutdown.
|
Package scheduler wraps robfig/cron with a fluent API for defining scheduled tasks, named jobs, and graceful shutdown. |
|
secrets
Package secrets provides AES-256-GCM encryption for application secrets.
|
Package secrets provides AES-256-GCM encryption for application secrets. |
|
seeder
Package seeder provides the database seeder system for OniWorks.
|
Package seeder provides the database seeder system for OniWorks. |
|
session
Package session provides server-side session management for OniWorks.
|
Package session provides server-side session management for OniWorks. |
|
session/drivers
Package drivers provides session store implementations.
|
Package drivers provides session store implementations. |
|
storage
Package storage provides a unified file storage abstraction with local-disk and S3-compatible (AWS S3, MinIO, Wasabi, R2) drivers.
|
Package storage provides a unified file storage abstraction with local-disk and S3-compatible (AWS S3, MinIO, Wasabi, R2) drivers. |
|
testing
Package testing provides test helpers for OniWorks applications.
|
Package testing provides test helpers for OniWorks applications. |
|
validation
Package validation provides struct-tag-driven input validation for OniWorks.
|
Package validation provides struct-tag-driven input validation for OniWorks. |
|
testing
|
|
|
stress
command
OniWorks Stress Test
|
OniWorks Stress Test |
Click to show internal directories.
Click to hide internal directories.