Skip to content

Releases: nabbar/golib

v1.9.0

20 Apr 13:07
Compare
Choose a tag to compare

Package HttpCli :

  • slipt package between pure httpcli and request to become new package Request
  • Refactor Package HTTPCli:
    • Reword Const (timeout + errors)
    • Remove old request interface
    • Add new request interface to make a request, send it, parse a result model and check response status
    • Add function to skip DNS resolution for http client connection
  • Add options to httpcli allowed to create an http client based on options

Package Request :

  • integer option capabilities to configure the request inteface
  • use httpcli option to get httpcli (keep custom function to get an *http.client)
  • extend function to mode manage the request
  • Add features to integer package Status
  • Add features to allow overwrite the default status info func
  • Change context params as internal function context given
  • Add new param to set the func context
  • Add func to set function context

Package AWS :

  • add option for delete object : check boolean to make or not the check (head) before delete
  • add exclusion of NoSuchKey error if check is false
  • Fix issue #136
    • add function ForceSignerOptions to pass options funct to signer
    • if not option exist, use default signer v4, else specify the options function list to the new signer
  • fix error with multiple ptr identifier on model
  • add function to list and cancel multipart uploads
  • add function to list, get and delete version object
  • add function to delete all objects following the S3 API DeleteObjects function (to send array of object key / version) in one request

Package Config :

  • Add component to package request
  • Add LDAP component for LDAP package
  • Fix the min value for ErrorCode in Head component
  • modify component interface :
    • add cpt as custom function parameters to prevent new component still not stored when running custom function
    • re-order mutex on start / reload process

Major Changes :

  • Bump go release to go 1.18
  • Bump dependancies
  • Use env var GOAMD64=v4 for GOARCH=amd64 in test build
  • Fix security alert with CVE-2021-3121 (cf #138 )

v1.8.11

29 Mar 07:01
Compare
Choose a tag to compare

Fix :

Chg :

  • bump dependancies

v1.8.10

16 Mar 17:20
Compare
Choose a tag to compare

Add packages :

  • package databse : use gorm lib to implement this helpers
  • package fpt client : expose a helper to post / read file from ftp server

Add component into package Config :

  • refactor component interface : simplify + add flag register process
  • add AWS custom / standard
  • add database
  • add Nats cluster
  • add NutsDB cluster
  • add smtp client
  • fix some errors into tls, http component

Fix / Update :

  • bump dependancies
  • adapt some fix into aws config, smtp, http server, nats, nutsdb, status packages
  • add gorm logger into logger pacakge
  • fix some errors
  • fix issue #125
  • fix issue #126
  • fix issue #127

v1.8.9

25 Feb 11:33
Compare
Choose a tag to compare

Package Config :

  • component tls : fix bug with config model
  • component http : fix bug with dependancies keys

v1.8.8

25 Feb 10:36
Compare
Choose a tag to compare

Package Config :

  • Fix start with dependencies : add 3 retry + tempo (100ms) on any start/reload component
  • Fix bool bug with component Header

Package Prometheus :

  • Add package prometheus to add prometheus exporter
  • Add metrics managment with gin context

v1.8.7

21 Feb 06:53
Compare
Choose a tag to compare

Add Package Cobra :

  • this package is an helper to make a CLI with flag / command
  • this package is based on spf13 cobra has all method to be connected to viper golib
  • See documentation cobra/README

Add Package Config :

  • They are 4 component for now : log, tls, headers and http server
  • The config package will start a new context / cancelfunc on init to be sure to stop cleanly all component and process
  • See documentation config/README

Add Package Viper :

  • this package is an helper to the config package with the spf13 viper lib
  • this package can watch any change of a config file or can be connected to a remote config cluster like ETCD

Change :

  • bump dependancies
  • fix race detection
  • fix some optimization

v1.8.6

10 Feb 13:31
Compare
Choose a tag to compare

Package Static :

  • refactor completly package
  • use embed go func
  • expand managment for more capabilities
  • implement router status new model
  • fix race detection

Change

  • bump dependancies
  • remove useless dependancies

v1.8.5

10 Feb 04:21
Compare
Choose a tag to compare

Fix issues :

  • Issue #119 : race detection
  • Issue #118 : wording match
  • Issue #117 : config option not detected in some case
  • other httpserver race detection

Change :

  • packages certificates : optimization with parsing string config
  • bump dependancies
  • packages nats : fix options following bump dependancies

Add :

  • Package Logger : add validator for options struct
  • Package Certificates: cipher for TLS v1.3 into cipher string parser

v1.8.4

17 Jan 17:20
Compare
Choose a tag to compare

Package AWS :

  • add method for website object (update redirection & acl)
  • add method to update metadata (copy object)
  • fix bug with missing content-type (all defined as application/octet-stream)

Other:

  • Bump dependancies

v1.8.3

14 Jan 13:38
Compare
Choose a tag to compare

Package AWS :

  • Add Bucket ACL
  • Add Sub method for Set Bucket ACL to simplify small call