mrentity

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileMetaToInfo added in v0.7.0

func FileMetaToInfo(meta FileMeta) mrtype.FileInfo

func FileMetaToInfoPointer added in v0.7.0

func FileMetaToInfoPointer(meta *FileMeta) *mrtype.FileInfo

func ImageMetaToInfo added in v0.7.0

func ImageMetaToInfo(meta ImageMeta) mrtype.ImageInfo

func ImageMetaToInfoPointer added in v0.7.0

func ImageMetaToInfoPointer(meta *ImageMeta) *mrtype.ImageInfo

Types

type EmptynullString

type EmptynullString string

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"`
}

func (*FileMeta) Empty added in v0.6.14

func (n *FileMeta) Empty() bool

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"`
}

func (*ImageMeta) Empty added in v0.6.14

func (n *ImageMeta) Empty() bool

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

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

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