controllers

package
v0.0.0-...-7e68079 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertsController

type AlertsController struct {
	Echo             *echo.Echo
	AlertService     services.AlertService
	AuthMiddleware   echo.MiddlewareFunc
	LogAlertRequests bool
}

func (*AlertsController) Init

func (ac *AlertsController) Init()

func (*AlertsController) StandardResponse

func (ac *AlertsController) StandardResponse(ctx echo.Context, response interface{}, err error) error

type AuthController

type AuthController struct {
	Echo         *echo.Echo
	AuthProvider auth.AuthProvider
}

func (*AuthController) Init

func (ac *AuthController) Init()

func (*AuthController) LoginHandler

func (ac *AuthController) LoginHandler(ctx echo.Context) error

Handles login request

Jump to

Keyboard shortcuts

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