controller

package
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController interface {
	Authenticate(echo.Context) error
}

func NewAuthController

func NewAuthController(authService service.AuthService, validate *validator.Validate) AuthController

type AuthControllerImpl

type AuthControllerImpl struct {
	AuthService service.AuthService
	Validate    *validator.Validate
}

func (*AuthControllerImpl) Authenticate

func (controller *AuthControllerImpl) Authenticate(e echo.Context) error

type GraphController

type GraphController interface {
	Query(echo.Context) error
	PlayGround(echo.Context) error
}

func NewGraphController

func NewGraphController(p http.Handler, q http.Handler) GraphController

type GraphControllerImpl

type GraphControllerImpl struct {
	PlaygroundHandler http.Handler
	QueryHandler      http.Handler
}

func (*GraphControllerImpl) PlayGround

func (controller *GraphControllerImpl) PlayGround(e echo.Context) error

func (*GraphControllerImpl) Query

func (controller *GraphControllerImpl) Query(e echo.Context) error

type TodoController

type TodoController interface {
	Create(echo.Context) error
	FindAll(echo.Context) error
	FindById(echo.Context) error
	Update(echo.Context) error
	Delete(echo.Context) error
	ReverseIsDone(echo.Context) error
}

func NewTodoController

func NewTodoController(todoService service.TodoService, validate *validator.Validate) TodoController

type TodoControllerImpl

type TodoControllerImpl struct {
	TodoService service.TodoService
	Validate    *validator.Validate
}

func (*TodoControllerImpl) Create

func (controller *TodoControllerImpl) Create(e echo.Context) error

func (*TodoControllerImpl) Delete

func (controller *TodoControllerImpl) Delete(e echo.Context) error

func (*TodoControllerImpl) FindAll

func (controller *TodoControllerImpl) FindAll(e echo.Context) error

func (*TodoControllerImpl) FindById

func (controller *TodoControllerImpl) FindById(e echo.Context) error

func (*TodoControllerImpl) ReverseIsDone

func (controller *TodoControllerImpl) ReverseIsDone(e echo.Context) error

func (*TodoControllerImpl) Update

func (controller *TodoControllerImpl) Update(e echo.Context) error

Jump to

Keyboard shortcuts

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