http

package
v0.0.0-...-81d1297 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSumHandler

func NewSumHandler(r *mux.Router, u domain.SumUsecase)

NewSumHandler returns HTTP delivery instance for Sum

Types

type SumHandler

type SumHandler struct {
	SumUsecase domain.SumUsecase
}

SumHandler represent HTTP handler for Sum

func (*SumHandler) Index

func (h *SumHandler) Index(w http.ResponseWriter, r *http.Request)

Index returns all Sums into JSON TODO: handle when Sum repository is empty

Jump to

Keyboard shortcuts

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