4 Commits

Author SHA1 Message Date
Nicolas JUHEL
f7fd908a14 Package Request:
- add content length header helper function
- add control with length of result marshall body with function jsonbody
- add set content length header in function jsonbody
2024-02-05 15:00:44 +01:00
Nicolas JUHEL
573af6ce3a Package AWS :
- Config Model : add a config model with a golib RouerStatus Config Model to use a AWS connection for API with a request status health check
  - Config Interface : add function GetAccessKey to retrieve the accesskey value currently used into the current connection
  - function Walk (Object, version, ...) : fix bug with pointer of string not initialized

Package Config :
  - interface Component : add status router pointer into the Init function to allow used a global router status for all component status registration as router status component

Package Status :
  - move Status Config as an sub package of Package Status

Package Errors :
  - add CamelCase const

Package Logger :
  - fix following bump dependencies

Global :
  - bump dependencies
  - change init of errors files : change function never call vy panic to prevent an error code collision
2022-09-13 12:31:04 +02:00
Nicolas JUHEL
2435b773de Package 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 config :
- Fix the min value for ErrorCode in Head component
- Add LDAP component for LDAP package
- Add Request component to Request package

Change / Fix :
- Bump Go to release 1.18
- Bump dependancies

TODO (in next work) :
- implement generic function (go 1.18) to simplify and reduce redondant code
- refactor package LDAP to be more compliant with other package structure
2022-04-07 04:04:41 +02:00
Nicolas JUHEL
b1f5e42db7 Package HttpCli :
- slipt package between pure httpcli and request to become new package Request
- Add options to httpcli allowed to create an http client based on options

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

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
2022-04-01 13:33:21 +02:00