mongolocal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomPort

func RandomPort() int

func RunWithServer

func RunWithServer(t *testing.T, callback func(*MongoLocal))

Types

type Config

type Config struct {
	DbPath string
	Port   int
}

func DefaultConfig

func DefaultConfig() Config

type MongoLocal

type MongoLocal struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, config Config) (*MongoLocal, error)

func (*MongoLocal) Config

func (m *MongoLocal) Config() Config

func (*MongoLocal) Logger

func (m *MongoLocal) Logger() *zap.Logger

func (*MongoLocal) Process

func (m *MongoLocal) Process() *exec.Cmd

func (*MongoLocal) Start

func (m *MongoLocal) Start() error

func (*MongoLocal) Stop

func (m *MongoLocal) Stop() error

func (*MongoLocal) URI

func (m *MongoLocal) URI() string

Jump to

Keyboard shortcuts

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