Documentation ¶
Index ¶
- func GenerateURL(bucket string, key string, customFilename string) (string, error)
- func UploadToS3(file io.Reader, filename string) (string, error)
- type CreateDocumentInput
- type CreateDocumentResponse
- type DeleteDocumentResponse
- type GetDocumentByIdResponse
- type GetDocumentsResponse
- type UpdateDocumentResponse
- type UploadDocumentInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateURL ¶ added in v2.1.9
Types ¶
type CreateDocumentInput ¶
type CreateDocumentResponse ¶
type CreateDocumentResponse struct { Document model.Document UpdatedPatient model.Patient Code int Err error }
func CreateDocument ¶
func CreateDocument(newdoc UploadDocumentInput, ownerId string, uploaderID string) CreateDocumentResponse
type DeleteDocumentResponse ¶
func DeleteDocument ¶
func DeleteDocument(docId string, patientId string) DeleteDocumentResponse
type GetDocumentByIdResponse ¶
func GetDocument ¶
func GetDocument(id string) GetDocumentByIdResponse
type GetDocumentsResponse ¶
func GetDocuments ¶
func GetDocuments(id string) GetDocumentsResponse
type UpdateDocumentResponse ¶
func UpdateDocument ¶
func UpdateDocument(newDocumentInfo CreateDocumentInput, id string) UpdateDocumentResponse
func Updatefavorite ¶
func Updatefavorite(id string, favorite bool, ownerID string) UpdateDocumentResponse
Click to show internal directories.
Click to hide internal directories.