modulepackage
2.9.0
Repository: https://github.com/cloudtrust/common-service.git
Documentation: pkg.go.dev
# README
common-service
common-service is a library which provides tools to Cloudtrust components designed as a web-based service
- database: tools used to automatically retrieve configuration and open a database connexion (can provide Noop "connection")
- http: provides tools to handle decoding of HTTP requests and encoding of responses/errors. Also provides a handler for "Version" requests
- idgenerator: generator of identifiers
- metrics: Influx client management
- middleware: provides tools to check authentication, ensure a correlationID exists
- security: authorization manager
- tracing: Jaeger client management
- tracking: Sentry client management
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ToFloat converts an 'any' value as float64 and returns a default value in case of error.
ToInt converts an 'any' value as int and returns a default value in case of error.
ToStringPtr converts an 'any' value as a string pointer.
ToTimePtr converts an 'any' value as a Time pointer.
# Constants
CtContextAccessToken is the access token context key.
CtContextCorrelationID is the correlation id context key.
CtContextGroups is the groups context key.
CtContextIssuerDomain is the issuer domain context key.
CtContextRealm is the realm name context key.
CtContextRealmID is the realm id context key.
CtContextUserID is the user id context key.
CtContextUsername is the username context key.
# Interfaces
Configuration interface.