Giter Club home page Giter Club logo

fdfs_client-1's Introduction

Fdfs_client go

add tag v1.0 线上在用的东西,发现原来第三方的库有个bug,其fixed后发现与 现在在用的库相比更新较多,怕有坑,不敢全pull,只好弃掉原来 的第三方库了

The Golang interface to the Fastdfs Ver 5.08.

Notice:Only realized the upload,download, delete functions

作者1年前就没有commit了,尝试修复一下bug并且新增一点功能

第一次commit:

1、增加common.go和common_test.go文件,用于松耦合读取配置文件的功能


2、connection_test.go client_test.go改成读取配置文件的ip地址,而不是hard code到测试文件中


3、设置连接池最大,最小连接数量可变

第二次commit

1、修复客户端泄露的可能错误

2、增加日志记录,使得更加方便debug

第三次commit

1、修复for循环没有break的bug

2、优化日志

第四次commit

1、完善append by file name操作的truncate, append和modify功能

2、测试完整append by file name功能并通过
 go test github.com/tRavAsty/fdfs_client -test.run "TestUploadAppenderByFilename" -v

Installation

$ go get github.com/tRavAsty/fdfs_client

Getting Started

go test github.com/tRavAsty/fdfs_client -v

运行某一测试函数

go test github.com/tRavAsty/fdfs_client -test.run "Test*" -v

或者看看 client_test.go

Author

我是要做毕设的大四狗

有什么问题请联系我 [email protected]

fdfs_client-1's People

Contributors

laohanlinux avatar gugupro avatar jan4984 avatar

Stargazers

魏 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.