Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidFiletypeError = errors.New("invalid filetype, must be a pdf, txt, or docx")
)
Functions ¶
This section is empty.
Types ¶
type SearchDocuments ¶
type SearchDocumentsResult ¶
type SearchDocumentsResult struct { Uuid uuid.UUID `json:"uuid,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt time.Time `json:"UpdatedAt,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Filename string `json:"filename,omitempty"` Filetype types.Filetype `json:"filetype,omitempty"` Username string `json:"username,omitempty"` Rank float32 `json:"rank,omitempty"` }
type UploadDocument ¶
type UploadDocument struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` FileName string `json:"filename,omitempty"` File []byte `json:"file,omitempty"` FileType types.Filetype `json:"filetype,omitempty"` UserID int `json:"userId,omitempty"` Content *string `json:"content,omitempty"` }
func (*UploadDocument) SetFile ¶
func (u *UploadDocument) SetFile(file []byte)
func (*UploadDocument) SetFileName ¶
func (u *UploadDocument) SetFileName(filename string)
func (*UploadDocument) SetFileType ¶
func (u *UploadDocument) SetFileType(filetype string) error
Click to show internal directories.
Click to hide internal directories.