db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogsDir

func InitLogsDir(path string) error

Types

type LogsDB

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

func NewLogsDB

func NewLogsDB(dbpath string) (*LogsDB, error)

func (*LogsDB) CreateTable

func (l *LogsDB) CreateTable() error

func (*LogsDB) GetLogs

func (l *LogsDB) GetLogs() ([]t.LogEntry, error)

func (*LogsDB) Insert

func (l *LogsDB) Insert(level, message, environment, serviceName, metadata string) error

func (*LogsDB) SaveLogEntry

func (l *LogsDB) SaveLogEntry(logEntry t.LogEntry) error

func (*LogsDB) TableExists

func (l *LogsDB) TableExists(name string) bool

Jump to

Keyboard shortcuts

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