nosql

package
v0.0.0-...-f4159b9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type     Type
	Username string
	Password string
	Database string
}

Config contains info about the test DB you're trying to get

type Server

type Server struct {
	DB *mongo.Database
	// contains filtered or unexported fields
}

Server is the struct returned on creation

func NewServer

func NewServer(c *Config) (*Server, error)

NewServer accepts a config

func (*Server) Kill

func (s *Server) Kill()

Kill executes clean-up functions for the Server

type Type

type Type int

Type defines the type of database you'd like

const (
	Mongo Type = iota
)

Jump to

Keyboard shortcuts

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