utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresPersistence

type PostgresPersistence struct {
	// define connection settions for persistence
	DatabaseURL string
	// define postgres session/connection pool
	Session *pgxpool.Pool
}

func (*PostgresPersistence) Close

func (db *PostgresPersistence) Close()

function used to close persistence connections. should be called in defer block/statement

func (*PostgresPersistence) Connect

func (db *PostgresPersistence) Connect() error

function used to connect/generate connection pool to postgres instance

Jump to

Keyboard shortcuts

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