obj_storage

package
v0.0.0-...-9bd7499 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

func NewAWS

func NewAWS(p *ws.PostApi) *AWS

func (*AWS) UploadFile

func (m *AWS) UploadFile(filePath string, onProgressFun func(int)) (string, string, error)

func (*AWS) UploadImage

func (m *AWS) UploadImage(filePath string, onProgressFun func(int)) (string, string, error)

func (*AWS) UploadSound

func (m *AWS) UploadSound(filePath string, onProgressFun func(int)) (string, string, error)

func (*AWS) UploadVideo

func (m *AWS) UploadVideo(videoPath, snapshotPath string, onProgressFun func(int)) (string, string, string, string, error)

type COS

type COS struct {
	// contains filtered or unexported fields
}

func NewCOS

func NewCOS(p *ws.PostApi) *COS

func (*COS) UploadFile

func (c *COS) UploadFile(filePath string, onProgressFun func(int)) (string, string, error)

func (*COS) UploadImage

func (c *COS) UploadImage(filePath string, onProgressFun func(int)) (string, string, error)

func (*COS) UploadSound

func (c *COS) UploadSound(filePath string, onProgressFun func(int)) (string, string, error)

func (*COS) UploadVideo

func (c *COS) UploadVideo(videoPath, snapshotPath string, onProgressFun func(int)) (string, string, string, string, error)

type Minio

type Minio struct {
	// contains filtered or unexported fields
}

func NewMinio

func NewMinio(p *ws.PostApi) *Minio

func (*Minio) UploadFile

func (m *Minio) UploadFile(filePath string, onProgressFun func(int)) (string, string, error)

func (*Minio) UploadImage

func (m *Minio) UploadImage(filePath string, onProgressFun func(int)) (string, string, error)

func (*Minio) UploadSound

func (m *Minio) UploadSound(filePath string, onProgressFun func(int)) (string, string, error)

func (*Minio) UploadVideo

func (m *Minio) UploadVideo(videoPath, snapshotPath string, onProgressFun func(int)) (string, string, string, string, error)

type OSS

type OSS struct {
	// contains filtered or unexported fields
}

OSS 阿里云对象存储

func NewOSS

func NewOSS(p *ws.PostApi) *OSS

func (*OSS) UploadFile

func (c *OSS) UploadFile(filePath string, onProgressFun func(int)) (string, string, error)

func (*OSS) UploadImage

func (c *OSS) UploadImage(filePath string, onProgressFun func(int)) (string, string, error)

func (*OSS) UploadSound

func (c *OSS) UploadSound(filePath string, onProgressFun func(int)) (string, string, error)

func (*OSS) UploadVideo

func (c *OSS) UploadVideo(videoPath, snapshotPath string, onProgressFun func(int)) (string, string, string, string, error)

type OssProgressListener

type OssProgressListener struct {
	// contains filtered or unexported fields
}

OssProgressListener 定义进度条监听器。

func (*OssProgressListener) ProgressChanged

func (listener *OssProgressListener) ProgressChanged(event *oss.ProgressEvent)

ProgressChanged 定义进度变更事件处理函数。

type Push

type Push struct {
	// contains filtered or unexported fields
}

func NewPush

func NewPush(p *ws.PostApi, platformID int32, loginUserID string) *Push

func (*Push) SetAppBadge

func (c *Push) SetAppBadge(callback open_im_sdk_callback.Base, appUnreadCount int32, operationID string)

func (*Push) UpdateFcmToken

func (c *Push) UpdateFcmToken(callback open_im_sdk_callback.Base, fcmToken, operationID string)

type UploadProgress

type UploadProgress struct {
	// contains filtered or unexported fields
}

func NewUploadProgress

func NewUploadProgress(total int64, f func(int)) *UploadProgress

NewUploadProgress: Create a *UploadProgress object

func (*UploadProgress) Read

func (progress *UploadProgress) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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