Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeListAllEndpoint ¶
MakeListAllEndpoint makes the ListAllEndpoint.
Types ¶
type Component ¶
Component is the patient business component interface.
func NewComponent ¶
NewComponent returns a patient business component
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database deals with the communication with CockroachDB.
func InitDatabase ¶
InitDatabase initializes the database
func (*Database) ReadFromDb ¶
ReadFromDb returns all the patients from the database
type Patient ¶
type Patient struct { ID int32 `json:"id,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` BirthDate time.Time `json:"birthDate,omitempty"` AVSNumber string `json:"avsNumber,omitempty"` DoctorsIds []int32 `json:"doctors,omitempty"` }
Patient represents a patient
Click to show internal directories.
Click to hide internal directories.