db

package
v0.3.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "coordinator.db"

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	app.Component
	Db() *mongo.Database
	Tx(ctx context.Context, f func(txCtx mongo.SessionContext) error) error
}

func New

func New() Database

type Mongo

type Mongo struct {
	Connect  string `yaml:"connect"`
	Database string `yaml:"database"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL