Documentation
¶
Overview ¶
Package usecase provides application use cases.
For the Dependency Rule it is not allowed to import platform.
Index ¶
- func AddFavorite(deps FavoriteDeps) usecase.Interactor
- func AddMessage(deps addMessageDeps) usecase.Interactor
- func CollectStats(deps collectStatsDeps) usecase.Interactor
- func DeleteFavorite(deps FavoriteDeps) usecase.Interactor
- func DownloadAlbum(deps dlAlbumDeps) usecase.Interactor
- func DownloadGpx(deps dlGpxDeps) usecase.Interactor
- func DownloadImagesPoiGpx(deps getAlbumImagesDeps) usecase.Interactor
- func GetAlbumContents(deps getAlbumImagesDeps) usecase.IOInteractorOf[getAlbumInput, getAlbumOutput]
- func GetAlbums(deps getAlbumsDeps) usecase.Interactor
- func GetFavorite(deps FavoriteDeps) usecase.Interactor
- func GetImageInfo(deps getImageInfoDeps) usecase.Interactor
- func MapTile(deps *service.Locator) usecase.Interactor
- func NotFound(deps notFoundDeps) usecase.IOInteractorOf[struct{}, web.Page]
- func OG(deps *service.Locator) usecase.Interactor
- func SearchImages(deps getAlbumImagesDeps) usecase.Interactor
- func ServeFavicon(deps serveFaviconDeps) usecase.Interactor
- func ServeSiteFile(deps interface{}) usecase.Interactor
- func ServeSitemap(deps interface{ ... }) usecase.Interactor
- func SharePixelpeep() usecase.Interactor
- func ShowAlbum(deps getAlbumImagesDeps) usecase.IOInteractorOf[showAlbumInput, web.Page]
- func ShowAlbumAtImage(up usecase.IOInteractorOf[showAlbumInput, web.Page]) usecase.Interactor
- func ShowAlbumSprite(deps showAlbumSpriteDeps) usecase.Interactor
- func ShowImage(deps showImageDeps, forceDownload bool) usecase.Interactor
- func ShowMain(deps showMainDeps) usecase.IOInteractorOf[showMainInput, web.Page]
- func ShowMain2(deps showMainDeps) usecase.IOInteractorOf[showMainInput, web.Page]
- func ShowPano(deps showPanoDeps) usecase.Interactor
- func ShowPixelpeep(deps pixelpeepDeps) usecase.Interactor
- func ShowThumb(deps showThumbDeps) usecase.Interactor
- func ShowThumbGrid(deps showThumbGridDeps) usecase.Interactor
- type AlbumPageBuilder
- type FavoriteDeps
- type Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFavorite ¶ added in v0.0.17
func AddFavorite(deps FavoriteDeps) usecase.Interactor
func AddMessage ¶ added in v0.0.6
func AddMessage(deps addMessageDeps) usecase.Interactor
func CollectStats ¶ added in v0.0.7
func CollectStats(deps collectStatsDeps) usecase.Interactor
func DeleteFavorite ¶ added in v0.0.17
func DeleteFavorite(deps FavoriteDeps) usecase.Interactor
func DownloadAlbum ¶
func DownloadAlbum(deps dlAlbumDeps) usecase.Interactor
func DownloadGpx ¶
func DownloadGpx(deps dlGpxDeps) usecase.Interactor
func DownloadImagesPoiGpx ¶
func DownloadImagesPoiGpx(deps getAlbumImagesDeps) usecase.Interactor
ShowAlbum creates use case interactor to show album.
func GetAlbumContents ¶
func GetAlbumContents(deps getAlbumImagesDeps) usecase.IOInteractorOf[getAlbumInput, getAlbumOutput]
GetAlbumContents creates use case interactor to get album data.
func GetAlbums ¶
func GetAlbums(deps getAlbumsDeps) usecase.Interactor
GetAlbums creates use case interactor to get album data.
func GetFavorite ¶ added in v0.0.17
func GetFavorite(deps FavoriteDeps) usecase.Interactor
func GetImageInfo ¶
func GetImageInfo(deps getImageInfoDeps) usecase.Interactor
func NotFound ¶
func NotFound(deps notFoundDeps) usecase.IOInteractorOf[struct{}, web.Page]
NotFound creates use case interactor to show Not Found page.
func SearchImages ¶ added in v0.0.12
func SearchImages(deps getAlbumImagesDeps) usecase.Interactor
SearchImages creates use case interactor to show images for criteria.
func ServeFavicon ¶
func ServeFavicon(deps serveFaviconDeps) usecase.Interactor
func ServeSiteFile ¶
func ServeSiteFile(deps interface{}) usecase.Interactor
func ServeSitemap ¶ added in v0.1.35
func SharePixelpeep ¶ added in v0.1.35
func SharePixelpeep() usecase.Interactor
SharePixelpeep renders a read-only pixelpeep view from a JSON config passed as a query parameter, e.g. /pixelpeep?config=... (as produced by "Copy link" in the editor from ShowPixelpeep).
func ShowAlbum ¶
func ShowAlbum(deps getAlbumImagesDeps) usecase.IOInteractorOf[showAlbumInput, web.Page]
ShowAlbum creates use case interactor to show album.
func ShowAlbumAtImage ¶
func ShowAlbumAtImage(up usecase.IOInteractorOf[showAlbumInput, web.Page]) usecase.Interactor
func ShowAlbumSprite ¶ added in v0.1.35
func ShowAlbumSprite(deps showAlbumSpriteDeps) usecase.Interactor
func ShowImage ¶
func ShowImage(deps showImageDeps, forceDownload bool) usecase.Interactor
func ShowMain ¶
func ShowMain(deps showMainDeps) usecase.IOInteractorOf[showMainInput, web.Page]
ShowMain creates use case interactor to show album.
func ShowMain2 ¶ added in v0.1.35
func ShowMain2(deps showMainDeps) usecase.IOInteractorOf[showMainInput, web.Page]
ShowMain2 creates use case interactor to show album.
func ShowPano ¶
func ShowPano(deps showPanoDeps) usecase.Interactor
ShowPano creates use case interactor to show pano.
func ShowPixelpeep ¶ added in v0.1.35
func ShowPixelpeep(deps pixelpeepDeps) usecase.Interactor
ShowPixelpeep renders the pixelpeep editor for 2-4 images given by comma-separated hash, e.g. /pixelpeep-<hash1>,<hash2>. Use its "Copy link" button to share a read-only view (see SharePixelpeep).
func ShowThumb ¶
func ShowThumb(deps showThumbDeps) usecase.Interactor
func ShowThumbGrid ¶ added in v0.1.35
func ShowThumbGrid(deps showThumbGridDeps) usecase.Interactor
Types ¶
type AlbumPageBuilder ¶ added in v0.1.35
type AlbumPageBuilder struct {
// contains filtered or unexported fields
}
func NewAlbumPageBuilder ¶ added in v0.1.35
func NewAlbumPageBuilder(deps getAlbumImagesDeps) *AlbumPageBuilder
type FavoriteDeps ¶ added in v0.0.17
type FavoriteDeps interface {
FavoriteRepository() *storage.FavoriteRepository
}
type Image ¶
type Image struct {
Name string `json:"name"`
Hash string `json:"hash"`
Width int64 `json:"width"`
Height int64 `json:"height"`
BlurHash string `json:"blur_hash,omitempty"`
Gps *photo.Gps `json:"gps,omitempty"`
Exif *photo.Exif `json:"exif,omitempty"`
Description string `json:"description,omitempty"`
DescriptionHTML template.HTML `json:"description_html,omitempty"`
AISays string `json:"ai_says,omitempty"`
Is360Pano bool `json:"is_360_pano,omitempty"`
Size int64 `json:"size,omitempty"`
UTime int64 `json:"utime"`
Meta *photo.MetaData `json:"meta,omitempty"`
}
Source Files
¶
- add_favorite.go
- add_message.go
- add_stats.go
- ai_says.go
- album_page.go
- delete_favorite.go
- dl_album.go
- dl_gpx.go
- doc.go
- get_album_contents.go
- get_albums.go
- get_favorite.go
- get_image_info.go
- map_tile.go
- not_found.go
- og.go
- poi_gpx.go
- search.go
- serve_favicon.go
- serve_site_file.go
- shared.go
- show_album.go
- show_album_sprite.go
- show_image.go
- show_main.go
- show_main2.go
- show_pano.go
- show_pixelpeep.go
- show_thumb.go
- show_thumb_grid.go
- sitemap.go