Releases: no-src/gofs
Releases · no-src/gofs
v0.3.1
v0.3.0
Enhancements
- Add the
ignore_deleted
flag to support force sync the deleted files. - Add the
ignore_conf
flag to support custom file ignore rules. - Add the
rand_perm
flag to support custom the random user's permission. - Add the perm field for the
users
flag. - Move the
Action
to new package,sync
=>action
. - Move the
message
struct to thecontract
package and public it. - Add the
push_server
flag to enable the push server in the server side. - Implement the remote push mode, the gofs client monitors the source path and pushes the file changes to the push server.
- Update README docs.
- Add some tests.
- Add the
go report card
badge. - Add the
codecov
badge.
v0.2.4
Fixed
- Fix when a reconnect happens but can't receive auth response.
- Fix invalid convert causes a panic when checking connection close error.
- Fix retry to write a not exist file.
- Fix the problem of data race.
- Avoid deleting the file twice or more.
- Fix rename action does not trigger force delete in the local disk mode.
Enhancements
- Rename the
src
flag tosource
. - Rename the
target
flag todest
. - Add the
Config
struct to store flag arguments. - Add the
about
flag to print about info. - Add the
clear_deleted
flag to support clear all deleted files in thedest
path. - Rename the package,
server/fs
=>server/httpfs
. - Move the
util/fs*.go
tofs
package. - If execute the
sync_once
flag finished, then shutdown and exit the program. - Ignore all events about the deleted files.
- Add some badges.
- Add README doc for the server.
v0.2.3
Fixed
- Fix the
MD5FromFileName
function does not close the file after calculate finished. - Truncate daemon pid file before writing.
Enhancements
- Add the
log_event
flag to support writing the event log to file. - Set the
server_compress
flag tofalse
by default, because the gzip compression is not fast now. - Add the
logically_delete
flag to support logically delete. - Remove the
buf_size
flag. - Set the remote server source default port, it is 8105.
- Create Apache-2.0 License.
- Update README docs.
v0.2.2
Fixed
- Fix the
auth
request data is expired when the remote client reconnect and auth again. - Fix the problem of data race in the
local disk
mode. - Fix the problem of data race in the
remote disk server
andremote disk client
mode. - Fix the problem of data race for
fileLogger
. - Fix the problem of data race for
Conn
.
Enhancements
- Add Chinese document.
- Add support output git commit hash value with the
v
flag. - Add the
sync_cron
flag to support sync src directory to target directory with cron task. - Add the
pprof
flag to support enable the pprof route. - Add the
pprof_private
flag to support allow to access pprof route by private address and loopback address only. - Implement simple shutdown but not very graceful now.
- Add the
DoneWithError
func forWaitDone
interface to receive error info when work is done. - Refactor the
remoteClientMonitor
struct, just use onegoroutine
to read the data, and distribute the data by api type.
v0.2.1
Fixed
- Fix incorrect 404 response by customizing the
gin.Engine.NoRoute
when the gzip compression enabled. - Fix sync a deleted file already will create an empty file to target path.
- Fix hit rate is low that cancel the write message when receiving a remove event.
Enhancements
- Remove the
server_tmpl
andserver_tmpl_override
flags, read templates from memory now. - Keep the web logs alone.
- Add auth api version to support backward compatibility in the future.
- Add auth request info expire time, if over expire time then auth failed.
- Update README.md.
v0.2.0
Fixed
- Fix the web server allows unauthorized access, the default auth middleware is not abort the route when auth failed.
- Fix the
GetFileTimeBySys
func get incorrectctime
andmtime
on linux.
Enhancements
- The
query
api support return file hash with theneed_hash
parameter. - Remove the simple http server implement, use gin web framework now.
- Reduce writing the file or directory that does not exist.
- Optimize the
sync_once
command, support just sync the changed files. - The create event does not truncate the file, that will truncate file before writing to file now.
- Add the
DoWithContext
func forRetry
interface to support cancel retry work.
v0.1.2
Fixed
- Fix rename directory will lose directory contents on Linux.
- Fix write file return
ErrShortWrite
error in the concurrent scene.
Enhancements
- Use the
list.List
to save messages and events, avoid lost data. - Remove the
msg_queue
param in thesrc
flag. - Reduce the monitor writes file repeated.
v0.1.1
Enhancements
- Add support the gin web server as default file server.
- Add support the basic auth and login middleware for file server.
- Add support TLS transfer and user authorization between server and client.
- Add support generates random accounts for the file server by using the
rand_user_count
flag. - Add support the
server_compress
flag to control the file server response compress. - Add support auto check auth state per second, close the connection if unauthorized after one minute.
- Add the
Option
struct as file server options. - Change the
log_file
andlog_flush
flags to true as default.
v0.1.0
Fixed
- Fix
Write
directory messages is unprocessed. - Fix query api path error, add a root
FileSystem
for query api, the same as the file server api with/src/
route.
Enhancements
- Add
local_sync_disabled
param for remote server src, to disable local disk sync. - Add support HTTPS for the file server, it is default now, you can disable it by setting the
server_tls
flag to false. - Change the file server default addr, if https is disabled by
server_tls
flag,server_addr
reset to:80
default. - Add default handler for root route.
- Print help info if no arguments.