package
0.11.10
Repository: https://github.com/ticketmaster/goiardi.git
Documentation: pkg.go.dev

# Functions

CheckForOne object of the given type identified by the given name.
ChkNilArray examines an object, searching for empty slices.
ConnectDB connects to a database with the database name and a map of connection options.
DecodeBlob decodes the data encoded with EncodeBlob that was stored in the database so it can be loaded back into a goiardi object.
EncodeBlob encodes a slice or map of goiardi object data to save in the database.
EncodeToJSON encodes an object to a JSON string.
New creates a new data store instance, or returns an already created one.
WalkMapForNil walks through the given map, searching for nil slices to create.

# Constants

Format to use for dates and times for MySQL.

# Variables

Dbh is the database handle, shared around.
ErrNoStatuses is returned where there are no node statuses in the datastore at all.
ErrNoStatusList is returned when there are statuses in the datastore, but somehow the map of int slices associating a status with a node is missing.

# Structs

DataStore is the main data store struct, holding the key/value store and list of objects.

# Interfaces

Dbhandle is an interface for db handle types that can execute queries.
ResRow is an interface for rows returned by Query, or a single row returned by QueryRow.

# Type aliases

ErrorNodeStatus is for errors specific to the absence of node statuses in the system.