checks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Status(original storage_.StorageKey, originalSVG bool, thumb_size int) (bool, error)
	SetErr(original storage_.StorageKey, originalSVG bool, thumb_size int, err error) error
}

type CacheStatus

type CacheStatus struct {
	// contains filtered or unexported fields
}

func (*CacheStatus) SetErr

func (c *CacheStatus) SetErr(original storage_.StorageKey, originalSVG bool, thumb_size int, err error) error

func (*CacheStatus) Status

func (c *CacheStatus) Status(original storage_.StorageKey, originalSVG bool, thumb_size int) (bool, error)

type Preview

type Preview struct {
	L logger_.Logger
}

func (Preview) Check

func (p Preview) Check(typ types_.FileType, size_px int) error

type Resolution

type Resolution interface {
	Get(_ storage_.StorageOBJ) (w int, h int, err error)
}

type Source

type Source struct {
	L          logger_.Logger
	Cache      Cache
	Resolution Resolution
}

func (*Source) Check

func (c *Source) Check(original storage_.StorageOBJ, originalSVG bool, thumb_size int) error

проверка исходного изображения на корректность

Jump to

Keyboard shortcuts

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