Documentation ¶ Index ¶ func Db() *mongo.Database func Init(dbURI string) func(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Db ¶ func Db() *mongo.Database Db returns a pointer to the database that is being used. func Init ¶ func Init(dbURI string) func(ctx context.Context) error Init initializes the database service for the application. In the case of an initialization error, the application will exit with a error code 1. This is because the database service is needed for persisting data. Types ¶ This section is empty. Source Files ¶ View all Source files init.go Click to show internal directories. Click to hide internal directories.