Common Structures and Functions

Common Structures and Functions

The following are common structures and functions that are used across all the services.

Structures

Configuration structure for Synchrony, it defines the Synchrony Web API endpoint and port.

source

Standardized error response for any request. This is returned if any requests fail server-side.

source

Functions

loadConfigFile(filename)

Load a config file from a file name.

source
GraffSDK.getStatusFunction.
getStatus(config)

Get the status of the Synchrony service.

source
GraffSDK.printStatusFunction.
printStatus(config)

Print the current service status.

source