mrdto

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	ContentType  string     `json:"contentType,omitempty"`
	OriginalName string     `json:"originalName,omitempty"`
	Name         string     `json:"name,omitempty"`
	Path         string     `json:"-"`
	URL          string     `json:"url,omitempty"`
	Size         uint64     `json:"size,omitempty"`
	CreatedAt    *time.Time `json:"createdAt,omitempty"`
	UpdatedAt    *time.Time `json:"updatedAt,omitempty"`
}

FileInfo - мета-информация о файле.

func (*FileInfo) Original

func (f *FileInfo) Original() string

Original - возвращает оригинальное имя файла (как оно было названо в первоисточнике).

type ImageInfo

type ImageInfo struct {
	ContentType  string     `json:"contentType,omitempty"`
	OriginalName string     `json:"originalName,omitempty"`
	Name         string     `json:"name,omitempty"`
	Path         string     `json:"-"`
	URL          string     `json:"url,omitempty"`
	Width        uint64     `json:"width,omitempty"`
	Height       uint64     `json:"height,omitempty"`
	Size         uint64     `json:"size,omitempty"`
	CreatedAt    *time.Time `json:"createdAt,omitempty"`
	UpdatedAt    *time.Time `json:"updatedAt,omitempty"`
}

ImageInfo - мета-информация об изображении.

func (*ImageInfo) Original

func (i *ImageInfo) Original() string

Original - возвращает оригинальное имя изображение (как оно было названо в первоисточнике).

func (*ImageInfo) ToFileInfo

func (i *ImageInfo) ToFileInfo() FileInfo

ToFileInfo - возвращает мета-информацию изображения преобразованное в файловую структуру (с потерей дополнительной информации об изображении).

Jump to

Keyboard shortcuts

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