Documentation ¶
Index ¶
- Variables
- func CopyNode(originPath string, targetPath string) error
- func CostumeUserAgent(useragent string)
- func CreateNode(nodeData map[string][]string, doCache bool) (string, error)
- func DecodeImage(imageData *bytes.Buffer) (*bytes.Buffer, error)
- func DecodeNode(hash string, doCache bool) (map[string][]string, error)
- func DoesNodeExist(path string) (bool, string, error)
- func DownloadData(path string) (*bytes.Buffer, error)
- func DownloadDataToSocket(path string, conn *net.Conn) error
- func DownloadFile(path string, file *os.File) (int64, error)
- func DownloadProcessDataThread(targetData *bytes.Buffer, nowBlock *int, jobQueue *JobQueueStruct, ...)
- func DownloadProcessFileThread(file *os.File, fileLock *sync.Mutex, blockSize int64, jobQueue *JobQueueStruct, ...)
- func DownloadProcessSocketThread(conn *net.Conn, nowBlock *int, jobQueue *JobQueueStruct, ...)
- func EncodeImage(data *bytes.Buffer, imageWidth int, imageMaxHeight int) (*bytes.Buffer, error)
- func FileDoesNotExist() error
- func FileIsUsing() error
- func FolderDoesNotExist() error
- func GetFileLength(path string) (int64, error)
- func GetImage(hash string) (*bytes.Buffer, error)
- func GetPathFileName(path string) string
- func GetPathFolder(path string) string
- func GetRootNodeHash() (string, error)
- func GetTempPath(path string) ([][]string, error)
- func InitializeRootNode() (string, error)
- func IsFileUsing(path string) bool
- func JoinPath(first string, second string) string
- func ListFile(path string) ([][]string, error)
- func MakeFolder(path string) error
- func MoveNode(originPath string, targetPath string) error
- func NameExisted() error
- func NodeDoesNotExist() error
- func NotAFile() error
- func NotSetARootNodeYet() error
- func PathDoesNotExist() error
- func PathSwitchDir(orginalPath string, relPath string) (string, error)
- func PushImage(imageData *bytes.Buffer) (string, error)
- func RemoveNode(path string) error
- func SetRootNode(hash string) error
- func SetSESSDATA(sessdata string)
- func TagFileUsing(path string)
- func UntagFileUsing(path string)
- func UplaodNodeProcessThread(threadsWaitGroup *sync.WaitGroup)
- func UploadData(path string, data *bytes.Buffer) error
- func UploadDataFromSocket(path string, conn *net.Conn, fileLength int64) error
- func UploadFile(file *os.File, path string) error
- func UploadNode()
- func UploadProcessDataThread(fileData *bytes.Buffer, blockCount *int64, blockCountLock *sync.Mutex, ...)
- func UploadProcessFileThread(nodeData *SafeUploadNodeStruct, file *os.File, fileLock *sync.Mutex, ...)
- func UploadProcessSocketThread(conn *net.Conn, fileLength int64, blockCount *int64, ...)
- type CacheNodeStruct
- type JobQueueStruct
- type SafeUploadNodeStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SESSDATA = "" UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" )
Functions ¶
func CostumeUserAgent ¶
func CostumeUserAgent(useragent string)
func DownloadDataToSocket ¶ added in v1.4.0
func DownloadProcessSocketThread ¶ added in v1.4.0
func EncodeImage ¶
func FileDoesNotExist ¶
func FileDoesNotExist() error
func FileIsUsing ¶ added in v1.3.0
func FileIsUsing() error
func FolderDoesNotExist ¶
func FolderDoesNotExist() error
func GetFileLength ¶
func GetPathFileName ¶ added in v1.2.0
func GetPathFolder ¶ added in v1.2.0
func GetRootNodeHash ¶
func GetTempPath ¶ added in v1.2.0
func InitializeRootNode ¶
func IsFileUsing ¶ added in v1.3.0
func MakeFolder ¶
func NameExisted ¶
func NameExisted() error
func NodeDoesNotExist ¶
func NodeDoesNotExist() error
func NotSetARootNodeYet ¶
func NotSetARootNodeYet() error
func PathDoesNotExist ¶
func PathDoesNotExist() error
func PathSwitchDir ¶ added in v1.2.0
func RemoveNode ¶
func SetRootNode ¶
func SetSESSDATA ¶
func SetSESSDATA(sessdata string)
func TagFileUsing ¶ added in v1.3.0
func TagFileUsing(path string)
func UntagFileUsing ¶ added in v1.3.0
func UntagFileUsing(path string)
func UplaodNodeProcessThread ¶ added in v1.2.0
func UploadDataFromSocket ¶ added in v1.4.0
func UploadNode ¶ added in v1.2.0
func UploadNode()
func UploadProcessDataThread ¶
func UploadProcessFileThread ¶
func UploadProcessFileThread(nodeData *SafeUploadNodeStruct, file *os.File, fileLock *sync.Mutex, jobQueue *JobQueueStruct, threadsWaitGroup *sync.WaitGroup)
Types ¶
type CacheNodeStruct ¶ added in v1.2.0
type CacheNodeStruct struct {
// contains filtered or unexported fields
}
type JobQueueStruct ¶
type JobQueueStruct struct {
// contains filtered or unexported fields
}
type SafeUploadNodeStruct ¶
type SafeUploadNodeStruct struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.