package
0.1.46
Repository: https://github.com/ortelius/scec-commons.git
Documentation: pkg.go.dev

# Functions

EmptyJSON will convert a struct into an empty JSON string that includes all fields and nested fields.
FetchFromLTS interacts with the db abstraction microservice to fetch the json from NFT Storage or OCI registry.
GetEnvDefault is a convenience function for handling env vars.
InitializeDatabase is the function for connecting to the db engine, creating the database and collections.
InitLogger sets up the Zap Logger to log to the console in a human readable format.
MakeJSON converts a CID back into a json string.
MakeNFT normalizes the object into the corresponding cids=json string handling nested objects Parameters: object of any type Returns: CID for the object and json string suitable for storing in Arango (ie.
PersistOnLTS interacts with the db abstraction microservice to store the cid/json data on NFT Storage or the OCI registry.

# Structs

DBConnection is the structure that defined the database engine and collections.