infrastructure

package
v0.0.0-...-d9b0764 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresPool

func NewPostgresPool(ctx context.Context, logger util.ILogger) (*sql.DB, func(), error)

Types

type Logger

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

func NewLogger

func NewLogger() (*Logger, func(), error)

func (*Logger) Close

func (l *Logger) Close() func()

func (*Logger) Error

func (l *Logger) Error(message, resource string)

func (*Logger) Fatal

func (l *Logger) Fatal(message, resource string)

func (*Logger) Print

func (l *Logger) Print(message, resource string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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