04-loosely-coupled-app-layer

module
v0.0.0-...-9060cdc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: MIT

README

Loosely Coupled with Application Layer

The final example is based on the loosely coupled service with code generation.

The last iteration moves application logic out of the HTTP handlers to a separate layer.

Generating code

Generating both MySQL and OpenAPI code happens automatically when starting docker-compose.

To regenerate the models, you can restart the containers:

docker-compose restart sqlboiler
docker-compose restart oapi-codegen

See details in docker/sqlboiler and docker/oapi-codegen.

Directories

Path Synopsis
Package internal provides primitives to interact with the openapi HTTP API.
Package internal provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL