hosting

package
v0.0.0-...-f59483c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(svc Service)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL