Releases: nabbar/golib
Releases · nabbar/golib
v1.8.2
Package AWS :
- add bucket website configuration method
- add bucket CORS configuration method
- chg bucket method structure file
- bump ginkgo to v2
Package Logger :
- bump ginkgo to v2
Change :
- bump dependancies
- change unit test command to be compliance with ginkgo v2
v1.8.1
v1.8.0
New Package : MailPooler
This package allow to limit the send mail to a maximum number for a time defined
- implement SMTP lib interface
- check number of sent mail in a time lapse before sending new mail
- if time since last reset is over, reset counter
- add feature to call a user function on each counter reset
Package SMTP :
- Fix race detection / segFault
Package Mailer :
- add clone function
- add new function to parse all field of template with a map of data
Package Mail :
- add clone function
Package Logger
- add tag to config parser (viper, json, ..) for logger/options
v1.7.4
Bump dependancies :
- bump dependancies
- bump gin gonic to release v1.7.7 : fix CVE-2020-28483
- Update router package : add / update init function with options trustedProxies/trustedPlatform
Fix pkg archive
- Fix pkg archive : os.Stat return type Dir but syscall return not Dir
v1.7.2
v1.7.1
PKG Logger :
- fix issue #109
- fix issue #107
- fix issue #106
- fix bug with color linux / win
- fix bug with color between std, file and syslog
- fix using default logger instead of setup logger
- fix logrus logger level
- add debug message to test logger (test-httpserver)
PKG httpserver :
- apply logger's changes
- optimize httpserver shutdown process
PKG httpcli :
- add new params for log error / log check
PKG ldap :
- add new params for log error / log check
PKG Cluster :
- add validator tags into config
PKG Nats :
- add validator tags into config
PKG NutsDB :
- add validator tags into config
Global :
- bump dependancies
v1.7.0
Add package nats:
- config server, cluster, logger, user & permission
- config client & builder
- interface for managing server, cluster and client
- test for nats cluster / client producer & subscriber
Update packages :
- pkg errors : constant to add package nats
- pkg ioutils : add function to check / create file & path
Refactor Logger :
- Remove logger as globals to use dedicated pointer
- Add compat file to allow retro-compatibility (function are deprecated)
- Add field management to allow add custom information
- Add option struct to manage options
- Add entry struct to manage all log entry
- Add multithreading capabilities (with race prevention)
- Allow to log to file + stdout/stderr + syslog
- Add io.WriteCloser compatibility interface
- Add logrus hook to manage option by hook instance
- Add capabilities to custom each logfile/syslog/standard independently
- Add small test suite
Update Packages for logger new options :
- archive
- context
- httpcli
- httpserver
- ldap
- tests
Package Cluster
- Change logger into cluster
- Change SetLoggerFactory : no more init call
- Fix some spelling
Package NutsDB
- Implement new logger into NutsDB package
- Optimize concurrent work for package NutsDB
- Add shell (first release, will be refactor later)
Other :
- bump dependancies
- update minio server for aws test
- Fix httpserver with disabled server
- fix some race detection
Fix bug in Nutsdb
Fix Race detection
- logger
- password
Fix Archive :
- create archive : add params to clean prefix path from contents path
Fix Nutsdb :
- fix client command detection
- add test for unknown command before parsing
- fix snapshoot process for cluster
Package Nutsdb Cluster
Add Package Cluster :
- Based on dragonboat lib (https://github.com/lni/dragonboat)
- Add extended config with validate
- Add backend managment to allow simple implementation for backend simple, cocurrent & disk
- Has no backend implemented and must be a lib for a cluster mode of one backend
Add Package NutsDB
- Use lib nutsdb (https://github.com/xujiajun/nutsdb)
- Implement client to use embedded db cluster
- Convert nutsdb lib as clustered nutsdb with lib cluster (based on dragonboat)
- Implement disk backend lib for dragonboat
- Add complete config with nutsdb, node & cluster with validator
Update Package Archive :
Add CreateArchive to allow create an archive
- Implement TAR archive creation
- Implement GZIP compression creation
- iIplement TAR+GZIP compressed archive routine
- Need to implement ZIP archive creation (TODO)
- Cannot implement BZ2 compression creation : not available in golang/x/compress lib
Change
- Issue #94
- Package Progress : Fix race detector
- Remove useless code/deadcode
- Add / Bump dependancies
Warning : some constant name has been changed