db

package
v0.0.0-...-728126c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntry

func AddEntry(command, context, typeStr string) error

func Close

func Close()

Types

type GroupedJournals

type GroupedJournals struct {
	Command, Context string
	Count            int
}

func GroupEntries

func GroupEntries() ([]GroupedJournals, error)

type JournalEntry

type JournalEntry struct {
	ID        int
	Timestamp time.Time
	Command   string
	Context   string
	Type      string
}

JournalEntry represents the structure of a journal entry

func GetEntries

func GetEntries() ([]JournalEntry, error)

Jump to

Keyboard shortcuts

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