controller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationController

type ApplicationController struct {
	// contains filtered or unexported fields
}

ApplicationController to handle API related with application itself

func NewApplicationController

func NewApplicationController(conn *sql.DB) ApplicationController

NewApplicationController return new instance of ApplicationController

func (*ApplicationController) Health

func (c *ApplicationController) Health(ctx echo.Context) error

Health end point for health check

type BookController

type BookController interface {
	Create(c echo.Context) error
	Get(c echo.Context) error
	List(c echo.Context) error
	Update(c echo.Context) error
	Delete(c echo.Context) error
}

BookController handle input related to Book

func NewBookController

func NewBookController(bookRepository repository.BookRepository) BookController

NewBookController return new instance of book controller

Jump to

Keyboard shortcuts

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