go-tus

A pure Go client for the tus resumable upload protocol

Github星跟蹤圖

go-tus Build Status Go Report Card GoDoc

A pure Go client for the tus resumable upload protocol

Example

package main

import (
    "os"
    "github.com/eventials/go-tus"
)

func main() {
    f, err := os.Open("my-file.txt")

    if err != nil {
        panic(err)
    }

    defer f.Close()

    // create the tus client.
    client, _ := tus.NewClient("https://tus.example.org/files", nil)

    // create an upload from a file.
    upload, _ := tus.NewUploadFromFile(f)

    // create the uploader.
    uploader, _ := client.CreateUpload(upload)

    // start the uploading process.
    uploader.Upload()
}

Features

This is not a full protocol client implementation.

Checksum, Termination and Concatenation extensions are not implemented yet.

This client allows to resume an upload if a Store is used.

Built in Store

Store is used to map an upload's fingerprint with the corresponding upload URL., Name, Backend, Dependencies, :----:, :-------:, :------------:, MemoryStore, In-Memory, None, LeveldbStore, LevelDB, goleveldb, ## Future Work

  • SQLite store
  • Redis store
  • Memcached store
  • Checksum extension
  • Termination extension
  • Concatenation extension

主要指標

概覽
名稱與所有者eventials/go-tus
主編程語言Go
編程語言Go (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2016-12-09 18:38:36
推送於2023-07-25 15:20:15
最后一次提交2022-06-10 09:02:17
發布數0
用户参与
星數175
關注者數20
派生數67
提交數54
已啟用問題?
問題數16
打開的問題數10
拉請求數23
打開的拉請求數6
關閉的拉請求數11
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?