module
go
import "github.com/prescriptoo/prescriptoo-api/services/patient/module"Package module composes Patient business capabilities. Doctor owns portal HTTP.
Index
- type Dependencies
- type Module
- func NewModule(databases ...*pgxpool.Pool) *Module
- func (m *Module) Configure(d Dependencies)
- func (m *Module) Creator() p.PatientCreator
- func (m *Module) Lister() p.PatientLister
- func (m *Module) Patcher() p.PatientPatcher
- func (m *Module) Patients() p.PatientReader
- func (m *Module) RegisterHuma(_ huma.API)
type Dependencies
Dependencies defines the provider-owned capabilities required by Patient.
go
type Dependencies = usecase.Dependenciestype Module
Module composes patient business operations without publishing generic CRUD routes.
go
type Module struct {
// contains filtered or unexported fields
}func NewModule
go
func NewModule(databases ...*pgxpool.Pool) *ModuleNewModule wires persistent patient repositories when a database is supplied.
func (*Module) Configure
go
func (m *Module) Configure(d Dependencies)Configure wires the provider capabilities and PostgreSQL persistence.
func (*Module) Creator
go
func (m *Module) Creator() p.PatientCreatorCreator exposes only patient creation.
func (*Module) Lister
go
func (m *Module) Lister() p.PatientListerLister exposes only patient listing.
func (*Module) Patcher
go
func (m *Module) Patcher() p.PatientPatcherPatcher exposes only patient partial updates.
func (*Module) Patients
go
func (m *Module) Patients() p.PatientReaderPatients exposes the authorized patient reader.
func (*Module) RegisterHuma
go
func (m *Module) RegisterHuma(_ huma.API)RegisterHuma deliberately registers no generic patient CRUD aliases.
Generated by gomarkdoc