apps

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryType

type EntryType int
const (
	Connect EntryType = iota
	Quit
	Query
	InitDb
)

type LogEntry

type LogEntry struct {
	ConnectionID int
	Time         time.Time
	Typ          EntryType
	Text         string
}

func ReadLogFile

func ReadLogFile(filePath string) ([]*LogEntry, error)

func ReadLogLines

func ReadLogLines(input string) ([]*LogEntry, error)

Jump to

Keyboard shortcuts

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