mrentity

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileMetaToInfo added in v0.7.0

func FileMetaToInfo(meta FileMeta, mime *mrlib.MimeTypeList) mrtype.FileInfo

FileMetaToInfo - comment func.

func FileMetaToInfoPointer added in v0.7.0

func FileMetaToInfoPointer(meta *FileMeta, mime *mrlib.MimeTypeList) *mrtype.FileInfo

FileMetaToInfoPointer - comment func.

func ImageMetaToInfo added in v0.7.0

func ImageMetaToInfo(meta ImageMeta, mime *mrlib.MimeTypeList) mrtype.ImageInfo

ImageMetaToInfo - comment func.

func ImageMetaToInfoPointer added in v0.7.0

func ImageMetaToInfoPointer(meta *ImageMeta, mime *mrlib.MimeTypeList) *mrtype.ImageInfo

ImageMetaToInfoPointer - comment func.

Types

type EmptynullString

type EmptynullString string

EmptynullString - comment type.

func (*EmptynullString) Scan

func (n *EmptynullString) Scan(value any) error

Scan implements the Scanner interface.

func (EmptynullString) Value

func (n EmptynullString) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type FileMeta added in v0.6.14

type FileMeta struct {
	Path         string     `json:"path,omitempty"`
	ContentType  string     `json:"type,omitempty"`
	OriginalName string     `json:"origin,omitempty"`
	Size         int64      `json:"size,omitempty"`
	CreatedAt    *time.Time `json:"created,omitempty"`
	UpdatedAt    *time.Time `json:"updated,omitempty"`
}

FileMeta - comment struct.

func (*FileMeta) Empty added in v0.6.14

func (n *FileMeta) Empty() bool

Empty - проверяет, что объект пустой.

func (*FileMeta) Scan added in v0.6.14

func (n *FileMeta) Scan(value any) error

Scan implements the Scanner interface.

func (FileMeta) Value added in v0.6.14

func (n FileMeta) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type ImageMeta added in v0.6.14

type ImageMeta struct {
	Path         string     `json:"path,omitempty"`
	ContentType  string     `json:"type,omitempty"`
	OriginalName string     `json:"origin,omitempty"`
	Width        int32      `json:"width,omitempty"`
	Height       int32      `json:"height,omitempty"`
	Size         int64      `json:"size,omitempty"`
	CreatedAt    *time.Time `json:"created,omitempty"`
	UpdatedAt    *time.Time `json:"updated,omitempty"`
}

ImageMeta - comment struct.

func (*ImageMeta) Empty added in v0.6.14

func (n *ImageMeta) Empty() bool

Empty - проверяет, что объект пустой.

func (*ImageMeta) Scan added in v0.6.14

func (n *ImageMeta) Scan(value any) error

Scan implements the Scanner interface.

func (ImageMeta) Value added in v0.6.14

func (n ImageMeta) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type ZeronullInt32

type ZeronullInt32 int32

ZeronullInt32 - comment type.

func (*ZeronullInt32) Scan

func (n *ZeronullInt32) Scan(value any) error

Scan implements the Scanner interface.

func (ZeronullInt32) Value

func (n ZeronullInt32) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type ZeronullInt64

type ZeronullInt64 int64

ZeronullInt64 - comment type.

func (*ZeronullInt64) Scan

func (n *ZeronullInt64) Scan(value any) error

Scan implements the Scanner interface.

func (ZeronullInt64) Value

func (n ZeronullInt64) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

Jump to

Keyboard shortcuts

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