database

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AlreadyConnectedError   = errors.New("connection to database already established")
	FailedToConnectError    = errors.New("failed to connect to database")
	FailedToPingError       = errors.New("failed to ping database")
	NotConnectedError       = errors.New("connection to database not established")
	FailedToDisconnectError = errors.New("failed to disconnect from database")
	InternalServerError     = errors.New("internal server error")
)

Functions

This section is empty.

Types

type Logger

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

Logger is the logger for the database connection

func NewLogger

func NewLogger(logger commonlogger.Logger) Logger

NewLogger is the logger for the database connection

func (Logger) ConnectedToDatabase

func (l Logger) ConnectedToDatabase()

ConnectedToDatabase logs a success message when the server connects to the database

func (Logger) DisconnectedFromDatabase

func (l Logger) DisconnectedFromDatabase()

DisconnectedFromDatabase logs a success message when the server disconnects from the database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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