Discover Packages
github.com/tgdrive/teldrive
pkg
schemas
package
Version:
v0.0.0-...-7531cac
Opens a new window with list of versions in this module.
Published: Oct 19, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AccountStats struct {
ChannelID int64 `json:"channelId,omitempty"`
Bots []string `json:"bots"`
}
type Channel struct {
ChannelID int64 `json:"channelId"`
ChannelName string `json:"channelName"`
}
type Copy struct {
ID string `json:"id" binding:"required"`
Name string `json:"name" binding:"required"`
Destination string `json:"destination" binding:"required"`
}
type DeleteOperation struct {
Files []string `json:"files,omitempty"`
Source string `json:"source,omitempty"`
}
type DirMove struct {
Source string `json:"source" binding:"required"`
Destination string `json:"destination" binding:"required"`
}
type FileCategoryStats struct {
TotalFiles int `json:"totalFiles"`
TotalSize int `json:"totalSize"`
Category string `json:"category"`
}
type FileIn struct {
Name string `json:"name" binding:"required"`
Type string `json:"type" binding:"required"`
Parts []Part `json:"parts,omitempty"`
MimeType string `json:"mimeType"`
ChannelID int64 `json:"channelId"`
Path string `json:"path" binding:"required"`
Size int64 `json:"size"`
ParentID string `json:"parentId"`
Encrypted bool `json:"encrypted"`
}
type FileOperation struct {
Files []string `json:"files" binding:"required"`
Destination string `json:"destination,omitempty"`
}
type FileOut struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
MimeType string `json:"mimeType"`
Category string `json:"category,omitempty"`
Encrypted bool `json:"encrypted"`
Size int64 `json:"size,omitempty"`
ParentID string `json:"parentId,omitempty"`
ParentPath string `json:"parentPath,omitempty"`
UpdatedAt time .Time `json:"updatedAt,omitempty"`
Total int `json:"total,omitempty"`
}
type FileQuery struct {
Name string `form:"name"`
Query string `form:"query"`
Type string `form:"type"`
Path string `form:"path"`
Op string `form:"op"`
DeepSearch bool `form:"deepSearch"`
Shared *bool `form:"shared"`
ParentID string `form:"parentId"`
Category string `form:"category"`
UpdatedAt string `form:"updatedAt"`
Sort string `form:"sort"`
Order string `form:"order"`
Limit int `form:"limit"`
Page int `form:"page"`
}
type FileResponse struct {
Files []FileOut `json:"files"`
Meta Meta `json:"meta"`
}
type FileShareIn struct {
Password string `json:"password,omitempty"`
ExpiresAt *time .Time `json:"expiresAt,omitempty"`
}
type FileShareOut struct {
ID string `json:"id,omitempty"`
ExpiresAt *time .Time `json:"expiresAt,omitempty"`
Protected bool `json:"protected"`
UserID int64 `json:"userId,omitempty"`
Type string `json:"type"`
Name string `json:"name"`
}
type FileUpdate struct {
Name string `json:"name,omitempty"`
UpdatedAt time .Time `json:"updatedAt,omitempty"`
Parts []Part `json:"parts,omitempty"`
Size *int64 `json:"size,omitempty"`
}
type Message struct {
Message string `json:"message"`
}
type Meta struct {
Count int `json:"count,omitempty"`
TotalPages int `json:"totalPages,omitempty"`
CurrentPage int `json:"currentPage,omitempty"`
}
type MkDir struct {
Path string `json:"path" binding:"required"`
}
type Part struct {
ID int64 `json:"id"`
Salt string `json:"salt,omitempty"`
}
type PartUpdate struct {
Parts []Part `json:"parts"`
UploadId string `json:"uploadId"`
UpdatedAt time .Time `json:"updatedAt" binding:"required"`
Size int64 `json:"size"`
}
type Session struct {
Name string `json:"name"`
UserName string `json:"userName"`
UserId int64 `json:"userId"`
IsPremium bool `json:"isPremium"`
Hash string `json:"hash"`
Expires string `json:"expires"`
}
type SessionOut struct {
Hash string `json:"hash"`
CreatedAt string `json:"createdAt"`
Location string `json:"location,omitempty"`
OfficialApp bool `json:"officialApp,omitempty"`
AppName string `json:"appName,omitempty"`
Valid bool `json:"valid"`
Current bool `json:"current"`
}
type ShareAccess struct {
Password string `json:"password" binding:"required"`
}
type ShareFileQuery struct {
Path string `form:"path"`
Sort string `form:"sort"`
Order string `form:"order"`
Limit int `form:"limit"`
Page int `form:"page"`
}
type TgSession struct {
Sesssion string `json:"session"`
UserID int64 `json:"userId"`
Bot bool `json:"bot"`
UserName string `json:"userName"`
Name string `json:"name"`
IsPremium bool `json:"isPremium"`
}
type UploadPart struct {
Name string `json:"name"`
UploadId string `json:"uploadId"`
PartId int `json:"partId"`
PartNo int `json:"partNo"`
ChannelID int64 `json:"channelId"`
Size int64 `json:"size"`
Encrypted bool `json:"encrypted"`
}
type UploadPartOut struct {
Name string `json:"name"`
PartId int `json:"partId"`
PartNo int `json:"partNo"`
ChannelID int64 `json:"channelId"`
Size int64 `json:"size"`
Encrypted bool `json:"encrypted"`
Salt string `json:"salt"`
}
type UploadQuery struct {
PartName string `form:"partName" binding:"required"`
FileName string `form:"fileName" binding:"required"`
PartNo int `form:"partNo" binding:"required"`
ChannelID int64 `form:"channelId"`
Encrypted bool `form:"encrypted"`
}
type UploadStats struct {
UploadDate string `json:"uploadDate"`
TotalUploaded int64 `json:"totalUploaded"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.