mrentity

package
v0.6.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFileMetaToInfo added in v0.6.14

func ConvertFileMetaToInfo(meta *FileMeta) *mrtype.FileInfo

func ConvertImageMetaToInfo added in v0.6.14

func ConvertImageMetaToInfo(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:"s,omitempty"`
	CreatedAt    *time.Time `json:"crt,omitempty"`
	UpdatedAt    *time.Time `json:"upd,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:"w,omitempty"`
	Height       int32      `json:"h,omitempty"`
	Size         int64      `json:"s,omitempty"`
	CreatedAt    *time.Time `json:"crt,omitempty"`
	UpdatedAt    *time.Time `json:"upd,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