Documentation ¶
Index ¶
- Constants
- func DisableUplog()
- func EnableUplog()
- func FlushBuffer() error
- func GetUplogMaxStorageBytes() uint64
- func GetUplogUrl() string
- func GetWriteFileBufferInterval() time.Duration
- func IsUplogEnabled() bool
- func SetFlushFileBufferInterval(d time.Duration)
- func SetUplogFileBufferDirPath(path string)
- func SetUplogMaxStorageBytes(max uint64)
- func SetUplogUrl(url string)
- func WithBlock(ctx context.Context, upApiVersion UpApiVersion, fileSize, recoveredFrom uint64, ...) error
- func WithQuality(ctx context.Context, upType UpType, fileSize uint64, ...) error
- type UpApiVersion
- type UpType
Constants ¶
View Source
const ( // UpApiVersionV1 表示上传接口的版本 1 UpApiVersionV1 = uplog.UpApiVersionV1 // UpApiVersionV1 表示上传接口的版本 2 UpApiVersionV2 = uplog.UpApiVersionV2 // UpTypeForm 表示表单上传 UpTypeForm = uplog.UpTypeForm // UpTypeResumableV1 表示分片上传 V1 UpTypeResumableV1 = uplog.UpTypeResumableV1 // UpTypeResumableV2 表示分片上传 V2 UpTypeResumableV2 = uplog.UpTypeResumableV2 )
Variables ¶
This section is empty.
Functions ¶
func GetUplogMaxStorageBytes ¶ added in v7.22.0
func GetUplogMaxStorageBytes() uint64
GetUplogMaxStorageBytes 获取日志最大存储容量
func GetWriteFileBufferInterval ¶
GetWriteFileBufferInterval() 获取日志文件缓存刷新间隔
func SetFlushFileBufferInterval ¶
SetFlushFileBufferInterval 设置日志文件缓存刷新间隔
func SetUplogFileBufferDirPath ¶
func SetUplogFileBufferDirPath(path string)
SetUplogFileBufferDirPath 设置日志文件缓存目录
func SetUplogMaxStorageBytes ¶ added in v7.22.0
func SetUplogMaxStorageBytes(max uint64)
SetUplogMaxStorageBytes 设置日志最大存储容量
Types ¶
Click to show internal directories.
Click to hide internal directories.