muxHandle

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package muxHandle defines an interface which specifies database behaviour required by the multiplexer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBHandler

type DBHandler interface {
	/*
		Collection is a method required by the multiplexer
		to obtain handles for persistent storage for Entities.
	*/
	Collection(name string, opts ...*options.CollectionOptions) *mongo.Collection
}

DBHandler is an interface which defines the behaviour of a database handle required by the multiplexer.

This definition helps make the multiplexer testable, as well as constrain the multiplexer's capabilities towards the underlying database.

Jump to

Keyboard shortcuts

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