Factor into server and driver directories #120
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ncw/goftp-server:fix-116-dependencies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The change factors the pure server implementation into the "server"
directory and factors the file driver into "driver/file" and the minio
driver into "driver/minio".
This means that users of this library can import
goftp.io/server/server without having to import the file and minio
drivers which may not be needed.
This also adds a compatibility layer which exports all the types,
functions and variables that were exported at the top level.
This means this change should be 100% backwards compatible.
Fixes #116
Awsome change!!!
A small nit! Could we use another word for
goftp.io/server/server
, currently we have two words namedserver
which may cause confusing for user.How does
core
sound? That would give usgoftp.io/server/core
for the core library we then havegoftp.io/server/driver
for the drivers andgoftp.io/server
for backwards compatibility.@ncw No other word is better.
1f1ff084a7
tod3d11429c5
I've updated the PR now to use
core
instead ofserver
- looks nice!I've run the tests and they all pass. Rclone's ftp server tests pass too which is a good indication that the change is 100% backwards compatible.
I tried updating rclone to use
goftp.io/server/core
and it took 1.5 MB off the binary not having the minio driver linked so I think this is success!@ncw Thanks. I have merged this PR and released v0.4.0