Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeListSomeEndpoint ¶
MakeListSomeEndpoint makes the ListSomeEndpoint.
Types ¶
type Component ¶
type Component interface { ListAll(context.Context) ([]File, error) ListSome(context.Context, int32, int32) ([]File, error) Count(context.Context) (int32, error) }
Component is the files business component interface.
func NewComponent ¶
NewComponent returns a files 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
type File ¶
type File struct { ID int32 `json:"id,omitempty"` PatientAVSNumber string `json:"patientAvsNumber,omitempty"` DoctorID int32 `json:"doctorId"` Data string `json:"data"` }
File represents a patient file
Click to show internal directories.
Click to hide internal directories.