Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitImageFinder ¶
Types ¶
type Image ¶
type Image struct { // 图片类型 Type string // 原始数据长度(字节) OriginalSize int // 处理后数据长度(字节) Size int // 图片宽度 Width int // 图片高度 Height int // 图片数据 Data []byte // contains filtered or unexported fields }
func NewImageFromBytes ¶
type ImageFilterParams ¶
type ImageFinder ¶
func GetFinder ¶
func GetFinder(name string) (ImageFinder, error)
type ImageStorage ¶
type ImageStorage interface { Get(ctx context.Context, bucket, filename string) (*ent.Image, error) Put(ctx context.Context, file ent.Image) error Query(ctx context.Context, params ImageFilterParams) ([]*ent.Image, error) Count(ctx context.Context, params ImageFilterParams) (int64, error) }
func Ent ¶
func Ent() ImageStorage
Click to show internal directories.
Click to hide internal directories.