Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StorageTypes = []StorageType{Local, Alist, Webdav, StorageAll}
Functions ¶
This section is empty.
Types ¶
type ReceivedFile ¶ added in v0.4.0
type StorageType ¶
type StorageType string
var ( StorageAll StorageType = "all" Local StorageType = "local" Webdav StorageType = "webdav" Alist StorageType = "alist" )
type Task ¶
type Task struct {
Ctx context.Context
Error error
Status TaskStatus
File *File
Storage StorageType
StoragePath string
MessageID int
ChatID int64
ReplyMessageID int
}
type TaskStatus ¶
type TaskStatus string
var ( Pending TaskStatus = "pending" Succeeded TaskStatus = "succeeded" Failed TaskStatus = "failed" Canceled TaskStatus = "canceled" )
Click to show internal directories.
Click to hide internal directories.