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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?