Versions in this module Expand all Collapse all v1 v1.4.0 Jun 29, 2022 Changes in this version + type Client interface + Put func(ctx context.Context, category, filename string, size int64, body io.Reader) (link string, err error) + PutData func(ctx context.Context, category, filename string, data []byte) (link string, err error) + PutFile func(ctx context.Context, category, filepath string) (link string, err error) + PutImage func(ctx context.Context, category, filename string, img image.Image, typ ImageType) (link string, err error) + PutMultipartThumbnail func(ctx context.Context, category string, file *multipart.FileHeader, ...) (link string, err error) + func Open(ctx context.Context, conf Config) (Client, error) + type Config struct + LocalDir string + LocalURL string + RandPrefixLen int + S3AccessKey string + S3AuthToken string + S3Bucket string + S3Domain string + S3EndPoint string + S3Insecure bool + S3Mode bool + S3Region string + S3SecretKey string + func (c *Config) ValidAndRepair() error + type ImageType int + const ImageJPG + const ImagePNG