package
2.9.0
Repository: https://github.com/cloudtrust/common-service.git
Documentation: pkg.go.dev

# Packages

Package mock is a generated GoMock package.
No description provided by the author

# Functions

ConfigureDbDefault configure default database parameters for a given prefix Parameters are built with the given prefix, then a dash symbol, then one of these suffixes: host-port, username, password, database, protocol, max-open-conns, max-idle-conns, conn-max-lifetime If a parameter exists only named with the given prefix and if its value if false, the database connection will be a Noop one.
CreateAdditionalInfo creates the additional info value.
CreateEvent create the generic event that contains the ct_event_type, origin and audit_time.
GetDbConfig reads db configuration parameters Check the parameter {prefix}-enabled to know if the connection to the database should be enabled.
GetDbConfigExt is an extension of GetDbConfig for cases where we want to force the connection to be enabled/disabled.
NewEventsDBModule returns a Console module.
NewReconnectableCloudtrustDB opens a connection to a database.
NewTransaction creates a transaction.

# Constants

Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.
Defines event information constants.

# Structs

DbConfig Db configuration parameters.
NoopDB is a database client that does nothing.
NoopResult is a sql.Result that does nothing.
NoopSQLRow is the result of a QueryRow(...) for a NoopDB.
NoopSQLRows is the result of a Query(...) for a NoopDB.
ReconnectableCloudtrustDB implements an auto-reconnect mechanism.
ReportEventDetails information of an event to be reported.

# Interfaces

DbTransactionIntf is exported for unit tests.
EventsDBModule is the interface of the audit events module.
EventStorer interface of a.