package
1.4.5-alpha1
Repository: https://github.com/ottemo/commerce.git
Documentation: pkg.go.dev

# Packages

Package config is a default implementation of InterfaceConfig declared in "github.com/ottemo/commerce/env" package.
Package cron is a utility to schedule tasks.
Package errorbus is a default implementation of InterfaceErrorBus declared in "github.com/ottemo/commerce/env" package.
Package eventbus is a default implementation of InterfaceEventBus declared in "github.com/ottemo/commerce/env" package.
Package ini is a default implementation of InterfaceIniConfig declared in "github.com/ottemo/commerce/env" package.
Package logger is a default implementation of InterfaceLogger declared in "github.com/ottemo/commerce/env" package.

# Functions

ConfigEmptyValueValidator is a default validator function to accept any value.
ConfigGetValue returns config value or nil if not present.
Error creates new error (without dispatch).
ErrorCode returns error code of given error.
ErrorDispatch handles error, returns new one you should pass next.
ErrorLevel returns error level of given error.
ErrorMessage returns message of given error.
ErrorModify works similar to ErrorDispatch but allows to set error level, code and module name.
ErrorNew creates new error and dispatches it.
ErrorRaw creates new error by parsing given string (seek for module name, level and code inside) and dispatches it.
ErrorRegisterListener registers listener for error bus.
Event emits new event for registered listeners.
EventRegisterListener registers listener for event bus.
GetConfig returns currently the used configuration service implementation or nil.
GetErrorBus returns currently used error processor implementation or nil.
GetEventBus returns currently used event processor implementation or nil.
GetIniConfig returns currently used ini config service implementation or nil.
GetLogger returns currently used logging service implementation or nil.
GetScheduler returns currently used scheduler implementation or nil.
IniValue returns value from ini file or "" if not present.
Log logs general purpose message.
LogError logs an error message.
LogEvent is a Log function short form for info messages in default storage.
OnConfigIniStart fires ini config service start event (callback handling).
OnConfigStart fires config service start event (callback handling).
RegisterConfig registers config service in the system - will cause error if there are couple candidates for that role.
RegisterErrorBus registers error processor in the system - will cause error if there are couple candidates for that role.
RegisterEventBus registers event processor in the system - will cause error if there are couple candidates for that role.
RegisterIniConfig registers ini config service in the system - will cause error if there are couple candidates for that role.
RegisterLogger registers logging service in the system - will cause error if there are couple candidates for that role.
RegisterOnConfigIniStart registers new callback on ini configuration service start.
RegisterOnConfigStart registers new callback on configuration service start.
RegisterScheduler registers scheduler in the system - will cause error if there are couple candidates for that role.
TypeArrayOf shortcut for utils.DataTypeArrayOf.
TypeIsArray shortcut for utils.DataTypeIsArray.
TypeIsFloat shortcut for utils.DataTypeIsFloat.
TypeIsString shortcut for utils.DataTypeIsString.
TypeParse shortcut for utils.DataTypeParse.
TypeWPrecision shortcut for utils.DataTypeWPrecision.
TypeWPrecisionAndScale shortcut for utils.DataTypeWPrecisionAndScale.

# Constants

Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.
Package global constants.

# Structs

StructConfigItem is a structure to hold information about particular configuration value.

# Interfaces

InterfaceConfig is an interface to configuration values managing service.
InterfaceErrorBus is an interface to system error processor.
InterfaceEventBus is an interface to system event processor.
InterfaceIniConfig is an interface to startup configuration predefined values service.
InterfaceLogger is an interface to system logging service.
InterfaceOttemoError is an interface to errors generated by error bus service.
InterfaceSchedule is an interface to system schedule service.
InterfaceScheduler is an interface to system scheduler service.

# Type aliases

FuncConfigValueValidator is a configuration value validator callback function prototype.
FuncCronTask is a callback function prototype executes by scheduler.
FuncErrorListener is an error listener callback function prototype.
FuncEventListener is an event listener callback function prototype - return value is continue flag, so listener should return false to stop event propagation.
No description provided by the author