database

package
v0.0.0-...-98b24e6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorValues

type ErrorValues struct {
	TimeStamp string
	Message   string
}

type LogValues

type LogValues struct {
	TimeStamp string
	Message   string
}

type LogWrapper

type LogWrapper struct {

	// DatabaseFilePath is the sqlite database file path
	DatabaseFilePath string

	// Verbose if true, show SQL queries for inserting Logs and Errors in SQLite database
	Verbose bool
}

func CreateDB

func CreateDB(databaseFilePath *string, verbose *bool) (*LogWrapper, error)

func (LogWrapper) ProcessError

func (LogWrapper) ProcessError(errMessage string) *ErrorValues

func (LogWrapper) ProcessLog

func (LogWrapper) ProcessLog(logMessage string) *LogValues

func (LogWrapper) RegisterErr

func (lw LogWrapper) RegisterErr(errorValues *ErrorValues) error

func (LogWrapper) RegisterLog

func (lw LogWrapper) RegisterLog(logValues *LogValues) error

Jump to

Keyboard shortcuts

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