db

package
v0.0.0-...-9ad72aa Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Ping() (string, error)
}

func NewDevDatabase

func NewDevDatabase() Database

type DevDatabase

type DevDatabase struct {
	URI string
}

func (*DevDatabase) Ping

func (m *DevDatabase) Ping() (string, error)

type MongoModule

type MongoModule struct{}

func (*MongoModule) ProvidedMongoDB

func (m *MongoModule) ProvidedMongoDB() (Database, error)

Jump to

Keyboard shortcuts

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