package
0.0.0-20200625043019-ec8dcbf1eed9
Repository: https://github.com/kafkaesque-io/pubsub-function.git
Documentation: pkg.go.dev

# Functions

NewDb is a database factory pattern to create a new database.
NewDbWithPanic ensures a database is returned panic otherwise.
NewInMemoryHandler initialize a Mongo Db.
NewPulsarHandler initialize a Pulsar Db.

# Variables

DocAlreadyExisted means document already existed in the database when a new creation is requested.
DocNotFound means no document found in the database.

# Structs

InMemoryHandler is the in memory cache driver.
PulsarHandler is the Pulsar database driver.

# Interfaces

Crud interface specifies typical CRUD opertaions for database.
Db interface embeds two other database interfaces.
Ops interface specifies required database access operations.