Documentation
¶
Overview ¶
simplesrv is a Go project template that provides a basic HTTP server backing onto a simple database (in this case an in-process SQLite). It provides enough structure for larger projects, including basic handlers, a service and simple calls to the database.
Usage:
simplesrv --sqlitedb ./app.db
Flags:
-a, --addr Address/port for the server to listen on. --sqlitedb Path to the SQLite database file. It will be created if it does not exist.
Directories
¶
Path | Synopsis |
---|---|
Package db handles all database operations (currently against SQLite).
|
Package db handles all database operations (currently against SQLite). |
Package service contains the primary business logic for the server.
|
Package service contains the primary business logic for the server. |
Package web contains the main application server, which handles the server routes, handlers and associated HTML templates.
|
Package web contains the main application server, which handles the server routes, handlers and associated HTML templates. |
Click to show internal directories.
Click to hide internal directories.