Documentation ¶
Index ¶
- func BoolPointer(value bool) *bool
- func BoolPointerCopy(value *bool) *bool
- func StringPointer(value string) *string
- func StringPointerCopy(value *string) *string
- func TimePointer(value time.Time) *time.Time
- func TimePointerCopy(value *time.Time) *time.Time
- type File
- type FileContent
- type FileHeader
- type FileInfo
- type Image
- type ImageContent
- type ImageHeader
- type ImageInfo
- type KeyInt32
- type KeyInt64
- type KeyString
- type PageParams
- type RangeInt64
- type SortParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointer ¶
func BoolPointerCopy ¶ added in v0.12.0
func StringPointer ¶ added in v0.9.6
func StringPointerCopy ¶ added in v0.12.0
Types ¶
type File ¶
type File struct { FileInfo Body io.ReadCloser }
type FileContent ¶ added in v0.9.7
type FileHeader ¶ added in v0.14.0
type FileHeader struct { FileInfo Header *multipart.FileHeader }
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 int64 `json:"size,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` }
type Image ¶ added in v0.12.0
type Image struct { ImageInfo Body io.ReadCloser }
type ImageContent ¶ added in v0.12.0
func (*ImageContent) ToFile ¶ added in v0.12.0
func (i *ImageContent) ToFile() FileContent
type ImageHeader ¶ added in v0.14.0
type ImageHeader struct { ImageInfo Header *multipart.FileHeader }
func (*ImageHeader) ToFile ¶ added in v0.14.0
func (i *ImageHeader) ToFile() FileHeader
type ImageInfo ¶ added in v0.9.6
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 int32 `json:"width,omitempty"` Height int32 `json:"height,omitempty"` Size int64 `json:"size,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` }
type PageParams ¶
type RangeInt64 ¶
type SortParams ¶
type SortParams struct { FieldName string // sortField Direction mrenum.SortDirection // sortDirection }
Click to show internal directories.
Click to hide internal directories.