Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewerController ¶
type ViewerController struct {
// contains filtered or unexported fields
}
ViewerController provides methods for viewing and working with logrus entries
func NewViewerController ¶
func NewViewerController(logger *logrus.Entry, serviceFactory factories.IServiceFactory) *ViewerController
NewViewerController creates a new controller
func (*ViewerController) PostSelectLogFile ¶
func (c *ViewerController) PostSelectLogFile(ctx echo.Context) error
PostSelectLogFile processes a user's selection of a log file. Basically this just validates the file exists, then redirects to the view entries page with a URL variable attached
POST: /postselectlogfile
func (*ViewerController) SelectLogFile ¶
func (c *ViewerController) SelectLogFile(ctx echo.Context) error
SelectLogFile presents the user with a form to select a log file to parse
GET: /selectlogfile
func (*ViewerController) ViewEntries ¶
func (c *ViewerController) ViewEntries(ctx echo.Context) error
ViewEntries renders the view logrus entries page. This page shows all entries for the selected log file.
GET: /
Click to show internal directories.
Click to hide internal directories.