warpin-go-common

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT

README

warpin-go-common

Reusable Go infrastructure packages for Warpin services.

This repository follows the capability-oriented organization of warpin-rs-common, while remaining one idiomatic Go module so consumers can pin and upgrade one version.

Packages

  • auth: JWT, cookie sessions, and OAuth provider primitives.
  • database: reusable GORM connection, repository, query, and transaction helpers.
  • errors: stable business-code error primitives.
  • http: unified result and HTTP response helpers.
  • mail: SMTP, AWS SES, and Aliyun DirectMail adapters.
  • storage: object-storage adapters.
  • types: shared persistence types.
  • utils: focused utility packages migrated from existing Warpin services.

Application models, schema migrations, seed data, route policy, and other service-specific behavior do not belong in this repository.

Compatibility

The initial v0.1.x line is extracted from the existing VoiceCraft server. It preserves its current JWT, result envelope, GORM repository, and utility behavior unless a security or portability issue requires an explicit fix.

Validation

go test ./...
go vet ./...

Directories

Path Synopsis
auth
jwt
http
request
storage
gcs
utils

Jump to

Keyboard shortcuts

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