Documentation
¶
Index ¶
- func Create(ctx context.Context, f *types.File) error
- func Delete(ctx context.Context, f *types.File) error
- func DeleteFile(path string) error
- func FixJpegImageRotation(r io.Reader) ([]byte, error)
- func Get(ctx context.Context, c database.Criteria) (*types.File, error)
- func GetAll(ctx context.Context, c database.Criteria) ([]*types.File, error)
- func GetAllCustom(ctx context.Context, p database.Pipeline) ([]*types.File, error)
- func HandleGet(c echo.Context) error
- func Init(jwtSecret string)
- func InitDatabase(ctx context.Context, db *mongo.Database) error
- func InitStorage(minioURI, minioAccessKey, minioSecretKey, minioBucket string, minioSSL bool) error
- func ReadImage(path string, size string) ([]byte, error)
- func ResizeImageFile(file *types.File, data []byte, size string) ([]byte, error)
- func SaveFile(data []byte, path string) error
- type Criteria
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixJpegImageRotation ¶ added in v0.2.0
FixJpegImageRotation by decode-encode with imageorient lib that takes care of exif value.
func GetAllCustom ¶ added in v0.2.0
GetAllCustom .
func InitDatabase ¶ added in v0.2.0
InitDatabase .
func InitStorage ¶ added in v0.2.0
InitStorage .
func ResizeImageFile ¶ added in v0.2.0
ResizeImageFile .
Types ¶
type Criteria ¶ added in v0.2.0
type Criteria struct {
database.BasicCriteria
}
Criteria .
func (*Criteria) ResourceID ¶ added in v0.2.0
ResourceID .
func (*Criteria) ResourceType ¶ added in v0.2.0
ResourceType .
Click to show internal directories.
Click to hide internal directories.