Releases: nabbar/golib
Releases · nabbar/golib
v1.16.2
Package Socket
- Client: fix TLS config for client, need TLS Server Name to be valid
Full Changelog
v1.16.1
Package HTTPServer
- replace time.duration / os.FileMode type by golib package duration & file perms to allow parsing string in json
Package Logger
- replace time.duration / os.FileMode type by golib package duration & file perms to allow parsing string in json
- fix json bug in default options
- add missing options in default json
Package Monitor
- replace time.duration / os.FileMode type by golib package duration & file perms to allow parsing string in json
Other
- bump dependencies
Full Changelog
v1.16.0...v1.16.1
v1.15.4...v1.16.1
v1.15.3...v1.16.1
v1.15.2...v1.16.1
v1.15.1...v1.16.1
v1.15.0...v1.16.1
v1.16.0
Package atomic:
- new package to simplify usage of atomic.Value & sync map by using generic struct/interface with cast
- add generic function to cast model
Package Duration:
- fix bug with 0s duration
Package aws:
- add new sub package pusher: pusher is an helper who's allow to push
single put object or multipart upload and implement io.writer &
io.readFrom interface
Other:
- bump dependencies
Full Changelog: v1.15.4...v1.16.0
v1.15.4
Package Request:
- fix bug with retryer and io reader body (body was not resend on retryed request)
- remove mutex and use atomic on potential race field
- simplify & optimize some code
Full Changelog: v1.15.3...v1.15.4
v1.15.3
Package Duration
- fix days: using ceil instead of floor
- add tuncate function for micro, milli, seconds, minutes, hours and days
Other
- bump dependencies
Full Changelog: v1.15.2...v1.15.3
v1.15.2
Package Semaphore:
- Fix issue #182
Package Encoding/RandReader:
- optimize code
- remplace some pointer by atomic to prevent RACE
Package AWS:
- fix double import with different tag for validator in config model
- apply MR about fix on bucket validator to config AWS model
Other:
- bump dependencies
New Contributors
- @ValentinMorel made their first contribution in #184
Full Changelog: v1.15.1...v1.15.2
v1.15.1
Package Semaphore
- add capabilities to create semaphore with more weighted thant physical thread
- to limit thread to physical thread use SetSimultaneous function
- add capabilites to use unlimited sync process (waitgroup)
- update process following
- add subpackage to create good semaphore/waitgroup instance
Package Encoding:
- add sub package randRead to allow expose random reader from remote source like http request
- add unit test for randReader
Package AWS:
- groups: add new function walk to list and call custom function on each found group
- role: add new function walk to list and call custom function on each found role
- role: add new function to detach all attached policy linked on each found role
- user: add new function walk to list and call custom function on each found user
- user: add new function to detach all attached policy linked on each found user
- policy: add new function walk to list and call custom function on each found policy
- policy: add new function to retrieve all ARN policy who's matching given prefix of not empty
v1.15.0
Package archive:
- complete rework of package
- split package between compression (stream compression only)
and archive (catalogue/dictionary/tape archive type)
- rework compression to be stream only working without any temporary file or any like
- rework archive like TAR, ZIP... to expose stream instead of writing directly file/path
- rework archive like TAR, ZIP... to allow adding file from stream only
and allowing to parsing local path to add it into archive
- rework detection of compression / archive
- rework extractAll function to not using useless local temporary file
- adding test can be used as example and perform testing of most of package code
- using const custom type for compression and archive allow them to be parsed,
marshalled or unmarshalled from text or json and more
- apply following change into other module that use it
Package artifact:
- replace file progress to generic interface extended from io reader / writer with progress function
- replace download function who's make the io copy, to a function that return the size + io.readCloser stream
Package ioutils/ioprogress:
- add a package to expose a generic interface based on io readcloser / writecloser
- add a instance to create a io readcloser / writecloser with progress function
- new instance based only on io readcloser/ writecloser
and allow to register progress function or not if not wanted
Other:
- bump dependencies
- adjust format licence for context/gin
Full Changelog: v1.14.1...v1.15.0
v1.14.1
Package Config:
- component/request: fix IsStarted function
- component/head: replace mutex to atomic
Package LDAP:
- fix bug if ldapPort for TLS is not set
- fix bug if ldapPort for StartTLS or noTLS is not set
Full Changelog: v1.14.0...v1.14.1
v1.14.0
Package Config/component/LDAP:
- replace mutex by atomic
- fix minor bugs & optimize code
Package Size:
- add function 'mul' allowing do a multiplaction on the size value by a float64 given value (could use another size.float64)
- add function 'div' allowing do a division of the size value by a float64 given value (could use another size.float64)
- add function 'add' allowing do an addtion of the size value with a uint64 given value (could use another size.uint64)
- add function 'sub' allowing do an substraction of the size value with a uint64 given value (could use another size.uint64)
Package Encoding:
- rework completly crypt package to new package encoding
- part aes of old crypt become new subpackage encoding/aes
- part hex of old crypt (associated with aes) become new standalone subpackage encoding/hexa
- adding new subpackage mux to use multiplexer/de-multiplexer of io stream
- mux is different of multireader / multiwriter in way as io send from mux in one channel
will be received only in the coresponding channel of de-mux
- mux is encoding subpackage becauxse based on hex + cbor marshalling / unmarshalling
- all subpackage can be used directly of by io reader / writer
Package Socket/server
- rework server to use as possible direct io to con
- rework server to optimize & fix managment (context / shutdown...)
- rework server to stop connection befor stopping server
- rework server to not load incoming and send it to handler by allowing handler to manager io input/output directly
- server not more used buff internally (less memory consuption)
- adding counter of opened connection
- adding some testing who's checking server & client for each protocol
Package Socket/client
- rework client to allow connect to server before reading/writing on io stream
- rework client to allow consum direct io stream instead of reading locally / call function
- rework client to allow having less memory consumption by removing internal buffer
- rework client allowing to use root io function (bufio, io copy, ...)
Package Socket/multi
- adding new subpackage multi to simplfy using of 1 reader / x writer
- if no writer is define, using an extended io discard
- allowing asynch instancing, populate writer and calling main writer
- allowing calling writer / reader to expose the main io reader / writer
Package Socket/delim:
- adding new subpackage delim to simplify using of bufio reader with delimiter
- using 1 writer / 1 reader
- allowing root io function like readwritecloser, writeto, ...
- use local buffer to prevent race if reader and writer are not is same process
Package PProf:
- fix missing \n in message
Package HttpServer:
- fix bug with init TLS & http2
Other:
- bump dependencies
What's Changed
Full Changelog: v1.13.14...v1.14.0