controllers

package
v0.0.0-...-8972c0a Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 12 Imported by: 0

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: /

func (*ViewerController) ViewEntry

func (c *ViewerController) ViewEntry(ctx echo.Context) error

ViewEntry gets an individual line.

GET: /entry?logfile=file&lineNumber=1

Jump to

Keyboard shortcuts

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