Documentation
¶
Index ¶
- func PublishPatientNotice(ctx context.Context, event PatientNotice) error
- func Register(registry *contracts.Registry)
- func SendWelcomeEmail(ctx context.Context, event PatientCreated) error
- type CreatePatient
- type CreatePatientResult
- type GetPatientPage
- type PatientCreated
- type PatientNotice
- type PatientPageData
- type RealtimePatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishPatientNotice ¶
func PublishPatientNotice(ctx context.Context, event PatientNotice) error
func SendWelcomeEmail ¶
func SendWelcomeEmail(ctx context.Context, event PatientCreated) error
Types ¶
type CreatePatient ¶
type CreatePatient struct {
Name string
}
type CreatePatientResult ¶
type CreatePatientResult struct {
ID string `json:"id"`
}
func HandleCreatePatient ¶
func HandleCreatePatient(ctx context.Context, command CreatePatient) (CreatePatientResult, error)
type GetPatientPage ¶
type GetPatientPage struct {
Filter string
}
type PatientCreated ¶
type PatientCreated struct {
ID string
}
type PatientNotice ¶
type PatientNotice struct {
Patch RealtimePatch `json:"patch"`
}
type PatientPageData ¶
func LoadPatientPage ¶
func LoadPatientPage(ctx context.Context, query GetPatientPage) (PatientPageData, error)
type RealtimePatch ¶
Click to show internal directories.
Click to hide internal directories.