Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { // IsExist 检查对象是否已存在 IsExist(ctx context.Context, filename string) (isExists bool, err error) // Upload 上传文件, 返回对象访问URL Upload(ctx context.Context, filename string, raw []byte) (u *url.URL, err error) // IsHostingURL 图片地址是否已是图床地址 IsHostingURL(imgUrl *url.URL) bool }
Service 图床服务
var Instance Service
Click to show internal directories.
Click to hide internal directories.