Documentation
¶
Index ¶
- func ClearSiteIcon(siteID uuid.UUID) error
- func FetchSiteFavicons(ctx context.Context, siteURL string) ([]models.SiteFavicon, error)
- func GetImagePath(imageDir string, id string) string
- func GetSiteIcon(_ context.Context, site models.Site) ([]byte, error)
- func SetSiteIcon(siteID uuid.UUID, dataURL string) error
- type Backend
- type FileBackend
- type S3Backend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSiteIcon ¶ added in v0.10.2
func FetchSiteFavicons ¶ added in v0.10.2
func GetImagePath ¶
Types ¶
type Backend ¶
type FileBackend ¶
type FileBackend struct{}
func (*FileBackend) DestroyFile ¶
func (s *FileBackend) DestroyFile(image *models.Image) error
func (*FileBackend) ReadFile ¶
func (s *FileBackend) ReadFile(image models.Image) (io.ReadCloser, int64, error)
Click to show internal directories.
Click to hide internal directories.