Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocation ¶
func PrintLogsEntries ¶
func PrintLogsEntries(entries []*LogsEntry)
Types ¶
type DateRangeInput ¶
type JournalLogService ¶
type JournalLogService struct {
// contains filtered or unexported fields
}
func NewJournalLogService ¶
func NewJournalLogService(dbUrl string) (*JournalLogService, error)
func (*JournalLogService) Close ¶
func (j *JournalLogService) Close()
func (*JournalLogService) GetLogPage ¶
func (s *JournalLogService) GetLogPage(data *LogPageData) ([]LogsEntry, error)
func (*JournalLogService) SaveJournalLogs ¶
func (s *JournalLogService) SaveJournalLogs(logs string) error
type JournalRenderData ¶
type JournalTable ¶
type JournalTable struct { Headers []string Rows [][]string NextUrl string StartInput *DateRangeInput EndInput *DateRangeInput PreviousButton *PaginationButton NextButton *PaginationButton PageSize *TextInput Container *TextInput Host *TextInput Filter *TextInput }
type JournalView ¶
type JournalView struct {
// contains filtered or unexported fields
}
func NewJournalView ¶
func NewJournalView(journalService *JournalLogService) *JournalView
func (*JournalView) CreateJournalTable ¶
func (j *JournalView) CreateJournalTable(data *JournalRenderData) (*JournalTable, error)
func (*JournalView) Render ¶
func (j *JournalView) Render(c echo.Context, data *JournalRenderData) error
type LogPageData ¶
type LogsEntry ¶
func ParseJournalLogs ¶
type LogsEntryCopyFrom ¶
type LogsEntryCopyFrom struct {
// contains filtered or unexported fields
}
func (*LogsEntryCopyFrom) Err ¶
func (c *LogsEntryCopyFrom) Err() error
func (*LogsEntryCopyFrom) Next ¶
func (c *LogsEntryCopyFrom) Next() bool
func (*LogsEntryCopyFrom) Values ¶
func (c *LogsEntryCopyFrom) Values() ([]any, error)
type PaginationButton ¶
Click to show internal directories.
Click to hide internal directories.