usecase

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Package usecase provides application use cases.

For the Dependency Rule it is not allowed to import platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 GetImageInfo

func GetImageInfo(deps getImageInfoDeps) usecase.Interactor

func MapTile

func MapTile(deps *service.Locator) usecase.Interactor

func NotFound

func NotFound(deps notFoundDeps) usecase.IOInteractorOf[struct{}, web.Page]

NotFound creates use case interactor to show Not Found page.

func OG

func OG(deps ogDeps) usecase.Interactor

func ServeFavicon

func ServeFavicon(deps serveFaviconDeps) usecase.Interactor

func ServeSiteFile

func ServeSiteFile(deps interface{}) usecase.Interactor

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 ShowImage

func ShowImage(deps showImageDeps, useAvif bool) usecase.Interactor

func ShowMain

func ShowMain(deps showMainDeps) usecase.IOInteractorOf[showMainInput, web.Page]

ShowMain creates use case interactor to show album.

func ShowPano

func ShowPano(deps showPanoDeps) usecase.Interactor

ShowPano creates use case interactor to show pano.

func ShowThumb

func ShowThumb(deps showThumbDeps) usecase.Interactor

Types

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"`
	Is360Pano   bool        `json:"is_360_pano,omitempty"`
	Size        int64       `json:"size,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL