schemas

package
v0.0.0-...-7531cac Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStats

type AccountStats struct {
	ChannelID int64    `json:"channelId,omitempty"`
	Bots      []string `json:"bots"`
}

type Channel

type Channel struct {
	ChannelID   int64  `json:"channelId"`
	ChannelName string `json:"channelName"`
}

type Copy

type Copy struct {
	ID          string `json:"id" binding:"required"`
	Name        string `json:"name" binding:"required"`
	Destination string `json:"destination" binding:"required"`
}

type DeleteOperation

type DeleteOperation struct {
	Files  []string `json:"files,omitempty"`
	Source string   `json:"source,omitempty"`
}

type DirMove

type DirMove struct {
	Source      string `json:"source" binding:"required"`
	Destination string `json:"destination" binding:"required"`
}

type FileCategoryStats

type FileCategoryStats struct {
	TotalFiles int    `json:"totalFiles"`
	TotalSize  int    `json:"totalSize"`
	Category   string `json:"category"`
}

type FileIn

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

type FileOperation struct {
	Files       []string `json:"files"  binding:"required"`
	Destination string   `json:"destination,omitempty"`
}

type FileOut

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 FileOutFull

type FileOutFull struct {
	*FileOut
	Parts     datatypes.JSONSlice[Part] `json:"parts,omitempty"`
	ChannelID *int64                    `json:"channelId,omitempty"`
	Path      string                    `json:"path,omitempty"`
}

type FileQuery

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

type FileResponse struct {
	Files []FileOut `json:"files"`
	Meta  Meta      `json:"meta"`
}

type FileShare

type FileShare struct {
	Password  *string
	ExpiresAt *time.Time
	Type      string
	FileID    string
	UserID    int64
	Path      string
	Name      string
}

type FileShareIn

type FileShareIn struct {
	Password  string     `json:"password,omitempty"`
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`
}

type FileShareOut

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

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

type Message struct {
	Message string `json:"message"`
}

type Meta

type Meta struct {
	Count       int `json:"count,omitempty"`
	TotalPages  int `json:"totalPages,omitempty"`
	CurrentPage int `json:"currentPage,omitempty"`
}

type MkDir

type MkDir struct {
	Path string `json:"path" binding:"required"`
}

type Part

type Part struct {
	ID   int64  `json:"id"`
	Salt string `json:"salt,omitempty"`
}

type PartUpdate

type PartUpdate struct {
	Parts     []Part    `json:"parts"`
	UploadId  string    `json:"uploadId"`
	UpdatedAt time.Time `json:"updatedAt" binding:"required"`
	Size      int64     `json:"size"`
}

type Session

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

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

type ShareAccess struct {
	Password string `json:"password" binding:"required"`
}

type ShareFileQuery

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

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 UploadOut

type UploadOut struct {
	Parts []UploadPartOut `json:"parts"`
}

type UploadPart

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

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

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

type UploadStats struct {
	UploadDate    string `json:"uploadDate"`
	TotalUploaded int64  `json:"totalUploaded"`
}

Jump to

Keyboard shortcuts

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