handler

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

Handlers represent handlers of echo server

func New

func New(sumUseCase *usecase.Sum) *Handlers

New create new handlers

func (*Handlers) Sum

func (h *Handlers) Sum(c echo.Context) error

Sum handle http request to calculate sum

func (*Handlers) SumHistory

func (h *Handlers) SumHistory(c echo.Context) error

SumHistory handle http request to list sum history

Jump to

Keyboard shortcuts

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