dockertester

package
v0.0.0-...-7de9431 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenPostgres

func OpenPostgres(resource *dockertest.Resource, port string) (*gorm.DB, error)

Types

type Dockertester

type Dockertester struct {
	HostPort string
	Pool     *dockertest.Pool
	Resource *dockertest.Resource
}

func InitPostgres

func InitPostgres() *Dockertester

InitPostgres function initialize dockertest for PostgreSQL. Please refer to the official example here: https://github.com/ory/dockertest/blob/v3/examples/PostgreSQL.md

Jump to

Keyboard shortcuts

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