connectionmanager

package
v1.0.10-0...-7349ede Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIPort = ":8081"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionManager

type ConnectionManager struct {
	ExporterClient exporter.RecordExporterClient
	ImporterClient heavymock.HeavymockImporterClient
	Importer       *heavymock.ImporterServer
	DB             *gorm.DB
	// contains filtered or unexported fields
}

struct that represents all connections that can be used throughout integration tests

func (*ConnectionManager) Start

func (c *ConnectionManager) Start(t testing.TB)

Starts GRPC server and initializes connection from GRPC clients

func (*ConnectionManager) StartAPIServer

func (c *ConnectionManager) StartAPIServer(t testing.TB)

start API server

func (*ConnectionManager) StartDB

func (c *ConnectionManager) StartDB(t testing.TB)

run postgres in docker and perform migrations

func (*ConnectionManager) Stop

func (c *ConnectionManager) Stop()

close all opened connections

Jump to

Keyboard shortcuts

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