Documentation ¶
Index ¶
- func FileMetaToInfo(meta FileMeta) mrtype.FileInfo
- func FileMetaToInfoPointer(meta *FileMeta) *mrtype.FileInfo
- func ImageMetaToInfo(meta ImageMeta) mrtype.ImageInfo
- func ImageMetaToInfoPointer(meta *ImageMeta) *mrtype.ImageInfo
- type EmptynullString
- type FileMeta
- type ImageMeta
- type ZeronullInt32
- type ZeronullInt64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileMetaToInfo ¶ added in v0.7.0
func FileMetaToInfoPointer ¶ added in v0.7.0
func ImageMetaToInfo ¶ added in v0.7.0
func ImageMetaToInfoPointer ¶ added in v0.7.0
Types ¶
type EmptynullString ¶
type EmptynullString string
func (*EmptynullString) Scan ¶
func (n *EmptynullString) Scan(value any) error
Scan implements the Scanner 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"` }
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"` }
type ZeronullInt32 ¶
type ZeronullInt32 int32
func (*ZeronullInt32) Scan ¶
func (n *ZeronullInt32) Scan(value any) error
Scan implements the Scanner interface.
type ZeronullInt64 ¶
type ZeronullInt64 int64
func (*ZeronullInt64) Scan ¶
func (n *ZeronullInt64) Scan(value any) error
Scan implements the Scanner interface.
Click to show internal directories.
Click to hide internal directories.