Documentation
¶
Index ¶
- func Close()
- func CreateMediaFile(file *MediaFile) (int, error)
- func CreateUser(user *User) (int, error)
- func DeleteMediaFile(id int) error
- func DeleteUser(id int) error
- func InitDB(databaseUrl string)
- func UpdateMediaFile(id int, file *MediaFile) error
- func UpdateUser(id int, updatedUser *User) error
- type MediaFile
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMediaFile ¶
func DeleteMediaFile ¶
func UpdateMediaFile ¶
Types ¶
type MediaFile ¶
type MediaFile struct {
ID int `json:"id"`
FilePath string `json:"file_path"`
FileType string `json:"file_type"`
CreationDatetime pgtype.Timestamp `json:"creation_datetime"` // Adjust type if needed
EmbeddingsCreated bool `json:"embeddings_created"`
Latitude string `json:"latitude"` // Using sql.NullFloat64 for optional fields
Longitude string `json:"longitude"`
Duration string `json:"duration"`
Image string `json:"image"`
Thumbnail string `json:"thumbnail,omitempty"`
}
func GetAllMediaFiles ¶
func GetMediaFileByID ¶
Click to show internal directories.
Click to hide internal directories.