internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbManager

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

func NewDbManager

func NewDbManager(file string) (error, *DbManager)

func (*DbManager) Delete

func (dbManager *DbManager) Delete(id int) error

func (*DbManager) GetLastInsertDate

func (dbManager *DbManager) GetLastInsertDate() (time.Time, error)

func (*DbManager) GetRecord

func (dbManager *DbManager) GetRecord(id int) (*LogRecord, error)

func (*DbManager) Insert

func (dbManager *DbManager) Insert(message string, time time.Time) (sql.Result, error)

func (*DbManager) List

func (dbManager *DbManager) List(date time.Time) (*sql.Rows, error)

func (*DbManager) Set

func (dbManager *DbManager) Set(id int, message string, messageTime time.Time) error

type LogRecord

type LogRecord struct {
	Id      int
	Message string
	Time    time.Time
}

Jump to

Keyboard shortcuts

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