Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraints ¶
type Details ¶
type Details interface { GetWidth() int GetHeight() int GetType() string GetAspectRatio() float64 GetFileName() string GetBaseName() string GetFileSize() int GetMinAllowedWidth() int GetMaxAllowedWidth() int HasSwappedAxes() bool IsHorizontallyFlipped() bool IsVerticallyFlipped() bool Validate(constraints Constraints) error }
type Media ¶
type Media struct { Details // contains filtered or unexported fields }
func (*Media) GetAspectRatio ¶
func (*Media) GetBaseName ¶
func (*Media) GetFileName ¶
func (*Media) Validate ¶
func (m *Media) Validate(constraints Constraints) (err error)
Click to show internal directories.
Click to hide internal directories.