localdatabase

package
v0.0.0-...-b5815b4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 3 Imported by: 0

README

LocalDatabase

In this package we have an implementation of Sqlite3 and we insert, select, and delete from our log table.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogMessage

func AddLogMessage(message string) int64

AddLogMessage : Allows records to be added to the sqlite log table

func DeleteLogMessage

func DeleteLogMessage(id int)

DeleteLogMessage : Method to remove id from log database

Types

type LogEntry

type LogEntry struct {
	ID      int       `json:"id"`
	Message string    `json:"message"`
	Created time.Time `json:"created"`
}

LogEntry : Represents database log entries

func FindAllLogMessage

func FindAllLogMessage() []LogEntry

FindAllLogMessage : Function returning all logs in database

type LogMessage

type LogMessage struct {
	Message string `json:"message"`
}

LogMessage : Represents a log entry

Jump to

Keyboard shortcuts

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