Documentation ¶
Index ¶
- type ImageInfo
- type ImagesBedClient
- func (ibc *ImagesBedClient) BuildURL(uri string) string
- func (ibc *ImagesBedClient) CreateScene(name string) bool
- func (ibc *ImagesBedClient) DeleteImage(md5 string) bool
- func (ibc *ImagesBedClient) DeleteScene(name string) bool
- func (ibc *ImagesBedClient) Download(md5 string, filepath string, filename ...string) string
- func (ibc *ImagesBedClient) GetDownloadURL(md5 string) string
- func (ibc ImagesBedClient) GetImageInfo(md5 string) *ImageInfo
- func (ibc *ImagesBedClient) GetScene() ([]string, error)
- func (ibc *ImagesBedClient) GetViewURL(md5 string, compress int) string
- func (ibc *ImagesBedClient) Reader(md5 string) (string, *bufio.Reader)
- func (ibc *ImagesBedClient) Upload(scene string, filename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagesBedClient ¶
func NewImagesBedClient ¶
func NewImagesBedClient(protocol string, host string, port int) *ImagesBedClient
NewImagesBedClient 初始化客户端
func (*ImagesBedClient) BuildURL ¶
func (ibc *ImagesBedClient) BuildURL(uri string) string
func (*ImagesBedClient) CreateScene ¶
func (ibc *ImagesBedClient) CreateScene(name string) bool
CreateScene 创建场景
func (*ImagesBedClient) DeleteImage ¶
func (ibc *ImagesBedClient) DeleteImage(md5 string) bool
DeleteImage 删除图片
func (*ImagesBedClient) DeleteScene ¶
func (ibc *ImagesBedClient) DeleteScene(name string) bool
DeleteScene 删除场景
func (*ImagesBedClient) Download ¶
func (ibc *ImagesBedClient) Download(md5 string, filepath string, filename ...string) string
Download 下载文件
func (*ImagesBedClient) GetDownloadURL ¶
func (ibc *ImagesBedClient) GetDownloadURL(md5 string) string
GetDownloadURL 获取下载链接,支持断点下载
func (ImagesBedClient) GetImageInfo ¶
func (ibc ImagesBedClient) GetImageInfo(md5 string) *ImageInfo
GetImageInfo 获取图片信息
func (*ImagesBedClient) GetScene ¶
func (ibc *ImagesBedClient) GetScene() ([]string, error)
GetScene 获取所有场景
func (*ImagesBedClient) GetViewURL ¶
func (ibc *ImagesBedClient) GetViewURL(md5 string, compress int) string
GetViewURL 获取预览链接,支持压缩,compress 0-100
Click to show internal directories.
Click to hide internal directories.