Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBWriteAheadLogger ¶
func NewDBWriteAheadLogger(db *gorm.DB, log *logrus.Logger) (definitions.WriteAheadLogger, error)
NewDBWriteAheadLogger creates a new logger and ensures the table is migrated.
Types ¶
type WriteAheadLogger ¶
type WriteAheadLogger struct {
// contains filtered or unexported fields
}
func (*WriteAheadLogger) ReadEntries ¶
func (l *WriteAheadLogger) ReadEntries() ([]definitions.LogEntry, error)
ReadEntries reads all WAL entries from the database.
func (*WriteAheadLogger) ReadLastEntries ¶
func (l *WriteAheadLogger) ReadLastEntries() ([]definitions.LogEntry, error)
ReadLastEntries retrieves the last active entries (not completed) for each session.
func (*WriteAheadLogger) WriteEntry ¶
func (l *WriteAheadLogger) WriteEntry(entry definitions.LogEntry)
WriteEntry writes a log entry to the WAL table in the database.
Click to show internal directories.
Click to hide internal directories.