module
go
import "github.com/prescriptoo/prescriptoo-api/services/development/module"Package module composes the development service without domain or port layers.
Index
type Module
Module wires Huma handlers to use-cases and the concrete Postgres repository.
go
type Module struct {
// contains filtered or unexported fields
}func NewModule
go
func NewModule(db *pgxpool.Pool, environment string) *ModuleNewModule permits development routes only in dev, development, local, and test. A nil pool supports offline schema generation and returns 503 on database requests.
func (*Module) RegisterHuma
go
func (m *Module) RegisterHuma(api huma.API)RegisterHuma omits development endpoints entirely outside allowed environments.
Generated by gomarkdoc