utils

package
v0.0.0-...-92a5e9f Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Copyright (c) 2023 Lucas de Ataides <ldatb@icloud.com>

SPDX-License-Identifier: MIT

Copyright (c) 2023 Lucas de Ataides <ldatb@icloud.com>

SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

Initialize global connection

View Source
var Logger *log.Logger

Create a global instance of the logger

Functions

func ConnectToDB

func ConnectToDB(config models.DatabaseConfigs)

Creates a connection with the database

func CreateLogger

func CreateLogger(logLevel string, logOutput string)

Creates an instance of a logrus logger

func InitializeDatabase

func InitializeDatabase(config models.DatabaseConfigs)

Makes the migrations and insert data

Types

This section is empty.

Jump to

Keyboard shortcuts

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