Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExifInfo ¶ added in v0.7.0
type ExifInfo struct { Make string `json:"-"` // `json:"make"` Model string `json:"-"` // `json:"model"` ExifImageWidth int `json:"-"` // `json:"exifImageWidth"` ExifImageHeight int `json:"-"` // `json:"exifImageHeight"` FileSizeInByte int `json:"-"` // `json:"fileSizeInByte"` Orientation any `json:"-"` // `json:"orientation"` DateTimeOriginal time.Time `json:"-"` // `json:"dateTimeOriginal"` ModifyDate time.Time `json:"-"` // `json:"modifyDate"` TimeZone string `json:"-"` // `json:"timeZone"` LensModel string `json:"-"` // `json:"lensModel"` FNumber float64 `json:"-"` // `json:"fNumber"` FocalLength float64 `json:"-"` // `json:"focalLength"` Iso int `json:"-"` // `json:"iso"` ExposureTime string `json:"-"` // `json:"exposureTime"` Latitude float64 `json:"-"` // `json:"latitude"` Longitude float64 `json:"-"` // `json:"longitude"` City string `json:"-"` // `json:"city"` State string `json:"-"` // `json:"state"` Country string `json:"-"` // `json:"country"` Description string `json:"-"` // `json:"description"` ProjectionType any `json:"-"` // `json:"projectionType"` }
type Faces ¶ added in v0.7.0
type Faces []struct { ID string `json:"-"` // `json:"id"` ImageHeight int `json:"-"` // `json:"imageHeight"` ImageWidth int `json:"-"` // `json:"imageWidth"` BoundingBoxX1 int `json:"-"` // `json:"boundingBoxX1"` BoundingBoxX2 int `json:"-"` // `json:"boundingBoxX2"` BoundingBoxY1 int `json:"-"` // `json:"boundingBoxY1"` BoundingBoxY2 int `json:"-"` // `json:"boundingBoxY2"` }
type ImmichAlbum ¶
type ImmichAlbum struct {
Assets []ImmichAsset `json:"assets"`
}
type ImmichApiCall ¶ added in v0.5.0
type ImmichAsset ¶
type ImmichAsset struct { Retries int ID string `json:"id"` DeviceAssetID string `json:"-"` // `json:"deviceAssetId"` OwnerID string `json:"-"` // `json:"ownerId"` DeviceID string `json:"-"` // `json:"deviceId"` LibraryID string `json:"-"` // `json:"libraryId"` Type string `json:"type"` OriginalPath string `json:"-"` // `json:"originalPath"` OriginalFileName string `json:"-"` // `json:"originalFileName"` OriginalMimeType string `json:"originalMimeType"` // `json:"originalMimeType"` Resized bool `json:"-"` // `json:"resized"` Thumbhash string `json:"-"` // `json:"thumbhash"` FileCreatedAt time.Time `json:"-"` // `json:"fileCreatedAt"` FileModifiedAt time.Time `json:"-"` // `json:"fileModifiedAt"` LocalDateTime time.Time `json:"localDateTime"` // `json:"localDateTime"` UpdatedAt time.Time `json:"-"` // `json:"updatedAt"` IsFavorite bool `json:"isFavorite"` // `json:"isFavorite"` IsArchived bool `json:"isArchived"` // `json:"isArchived"` IsTrashed bool `json:"isTrashed"` // `json:"isTrashed"` Duration string `json:"-"` // `json:"duration"` ExifInfo ExifInfo `json:"-"` // `json:"exifInfo"` LivePhotoVideoID any `json:"-"` // `json:"livePhotoVideoId"` People People `json:"people"` // `json:"people"` Checksum string `json:"checksum"` // `json:"checksum"` StackCount any `json:"-"` // `json:"stackCount"` IsOffline bool `json:"-"` // `json:"isOffline"` HasMetadata bool `json:"-"` // `json:"hasMetadata"` DuplicateID any `json:"-"` // `json:"duplicateId"` }
func (*ImmichAsset) GetImagePreview ¶
func (i *ImmichAsset) GetImagePreview() ([]byte, error)
GetImagePreview fetches the raw image data from Immich
func (*ImmichAsset) GetRandomImage ¶
func (i *ImmichAsset) GetRandomImage(requestId string) error
GetRandomImage retrieve a random image from Immich
func (*ImmichAsset) GetRandomImageFromAlbum ¶
func (i *ImmichAsset) GetRandomImageFromAlbum(albumId, requestId string) error
GetRandomImageFromAlbum retrieve random image within a specified album from Immich
func (*ImmichAsset) GetRandomImageOfPerson ¶
func (i *ImmichAsset) GetRandomImageOfPerson(personId, requestId string) error
GetRandomImageOfPerson retrieve random image of person from Immich
type ImmichError ¶
type People ¶ added in v0.7.0
type People []struct { ID string `json:"id"` Name string `json:"name"` BirthDate any `json:"-"` // `json:"birthDate"` ThumbnailPath string `json:"-"` // `json:"thumbnailPath"` IsHidden bool `json:"-"` // `json:"isHidden"` UpdatedAt time.Time `json:"-"` // `json:"updatedAt"` Faces Faces `json:"-"` // `json:"faces"` }
Click to show internal directories.
Click to hide internal directories.