Git Product home page Git Product logo

fdfs_client's Introduction

Fdfs_client for go

The Golang interface to the Fastdfs Ver 4.06.

Notice:Only realized the upload,download, delete functions

Installation

$ go get github.com/weilaihui/fdfs_client

Getting Started

see client_test.go please

Test

go test -v
=== RUN   TestParserFdfsConfig
    TestParserFdfsConfig: client_test.go:21: /data/fastdfs/client
--- PASS: TestParserFdfsConfig (0.00s)
=== RUN   TestNewFdfsClientByTracker
--- PASS: TestNewFdfsClientByTracker (0.01s)
=== RUN   TestUploadByFilename
    TestUploadByFilename: client_test.go:45: group1
    TestUploadByFilename: client_test.go:46: group1/M00/00/00/rBAKCl58nK2AeKzdAAAHXcwzLJY82.conf
--- PASS: TestUploadByFilename (0.02s)
=== RUN   TestUploadByBuffer
    TestUploadByBuffer: client_test.go:77: group1
    TestUploadByBuffer: client_test.go:78: group1/M00/00/00/rBAKCl58nK2AVHukAAAABTfs2ic638.txt
--- PASS: TestUploadByBuffer (0.01s)
=== RUN   TestUploadSlaveByFilename
    TestUploadSlaveByFilename: client_test.go:93: group1
    TestUploadSlaveByFilename: client_test.go:94: group1/M00/00/00/rBAKCl58nK2AfBnhAAAHXcwzLJY22.conf
    TestUploadSlaveByFilename: client_test.go:101: group1
    TestUploadSlaveByFilename: client_test.go:102: group1/M00/00/00/rBAKCl58nK2AfBnhAAAHXcwzLJY22_test
--- PASS: TestUploadSlaveByFilename (0.02s)
=== RUN   TestDownloadToFile
    TestDownloadToFile: client_test.go:120: group1
    TestDownloadToFile: client_test.go:121: group1/M00/00/00/rBAKCl58nK2AaZCsAAAHXcwzLJY60.conf
    TestDownloadToFile: client_test.go:131: 1885
    TestDownloadToFile: client_test.go:132: group1/M00/00/00/rBAKCl58nK2AaZCsAAAHXcwzLJY60.conf
--- PASS: TestDownloadToFile (0.01s)
=== RUN   TestDownloadToBuffer
    TestDownloadToBuffer: client_test.go:147: group1
    TestDownloadToBuffer: client_test.go:148: group1/M00/00/00/rBAKCl58nK2AL9xeAAAHXcwzLJY69.conf
    TestDownloadToBuffer: client_test.go:157: 1885
    TestDownloadToBuffer: client_test.go:158: group1/M00/00/00/rBAKCl58nK2AL9xeAAAHXcwzLJY69.conf
--- PASS: TestDownloadToBuffer (0.01s)
=== RUN   TestGetConnection
--- PASS: TestGetConnection (0.01s)
PASS
ok  	github.com/hzde0128/fdfs_client	1.225s

fdfs_client's People

Contributors

gugupro avatar hzde0128 avatar jan4984 avatar keonjeo avatar linglingqi007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.