database

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryDatabase

type InMemoryDatabase interface {
	CreateSync(key string, value string)
	GetSync(key string) string
}

func NewInMemoryDatabase

func NewInMemoryDatabase() InMemoryDatabase

type MongoDatabase

type MongoDatabase interface {
	GetCollection(collection string) *mongo.Collection
	Disconnect()
}

func NewMongoDatabase

func NewMongoDatabase() MongoDatabase

Jump to

Keyboard shortcuts

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