Vendor SharedCode locally
This commit is contained in:
1 parent
a8c51b8484
commit
6eb8f4ad60
88 files changed
+9708
-275
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Shared Go backend packages
|
||||
|
||||
The Go packages under this directory hold infrastructure shared by the
|
||||
services, not application-specific SQL or HTTP handlers.
|
||||
|
||||
- `config` — environment string, required value, boolean, integer, and duration helpers.
|
||||
- `postgres` — validated `DATABASE_URL` configuration, `pgxpool` creation/ping, transaction wrapper, and PostgreSQL error classification.
|
||||
- `auth` — shared bcrypt policy, secure token generation/hashing, account/session schema, and account/session persistence.
|
||||
- `migrate` — embedded filesystem adapter for Goose migrations.
|
||||
|
||||
Run `go test ./...` and `go vet ./...` from this directory. The module path is
|
||||
`repos.gfranz.ch/Gabriel20xx/shared/backend`; change it if the shared folder is
|
||||
hosted under a different repository path.
|
||||
|
||||
Application-specific table definitions and HTTP behavior stay in the service.
|
||||
That lets a service reuse reliable connection/auth plumbing without coupling
|
||||
its domain model to another project.
|
||||
Reference in new issue
Block a user