package
0.10.0
Repository: https://github.com/comcast/codex.git
Documentation: pkg.go.dev

# Packages

package batchDeleter provides a wrapper around the db.Pruner to provide a way to get expired records at a given interval and delete them at a separate given interval.
package batchInserter provides a wrapper around the db.Inserter to provide a way to group records together before inserting, in order to decrease database requests needed for inserting.
package postgresql provides a way to connect to a postgresql database to keep track of device events.
package dbretry contains structs that implement various db interfaces as well as consume them.

# Functions

ParseEventType returns the enum when given a string.

# Constants

No description provided by the author
default event type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
event type for online and offline events.
TypeLabel is for labeling metrics; if there is a single metric for successful queries, the typeLabel and corresponding type can be used when incrementing the metric.

# Structs

Record is the struct used to insert an event into the database.
RecordToDelete is the information needed to get out of the database in order to call the DeleteRecord function.

# Interfaces

Inserter is something that can insert records into the database.
Pruner is something that can get a list of expired records and delete them.
RecordGetter is something that can get records, including only getting records of a certain type.

# Type aliases

EventType is an enum for specifying the type of event being stored.