Skip to content

Releases: nabbar/golib

v1.8.2

13 Jan 10:00
Compare
Choose a tag to compare

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

30 Dec 11:20
Compare
Choose a tag to compare

Package Mail, Mailer, SMTP :

  • Add config Model to allow use it by config lib like viper, json, ...

v1.8.0

30 Dec 08:36
Compare
Choose a tag to compare

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

26 Nov 10:47
Compare
Choose a tag to compare

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

22 Oct 14:31
Compare
Choose a tag to compare
  • Fix pkg archive : os.Stat return type Dir but syscall return not Dir

v1.7.2

13 Sep 10:43
Compare
Choose a tag to compare

Go 1.17 :

  • Refactor go.mod fo go 1.17
  • Bump dependancies

v1.7.1

17 Jun 12:50
Compare
Choose a tag to compare

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

26 May 09:27
Compare
Choose a tag to compare

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

15 Apr 14:06
Compare
Choose a tag to compare

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

13 Apr 12:54
Compare
Choose a tag to compare

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