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 NewFiboHandler

func NewFiboHandler(r *mux.Router, u domain.FiboUsecase)

NewFiboHandler returns HTTP delivery instance for Fibo

Types

type FiboHandler

type FiboHandler struct {
	FiboUsecase domain.FiboUsecase
}

FiboHandler represent HTTP handler for Fibo

func (*FiboHandler) Index

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

Index returns all Fibos into JSON TODO: handle when Fibo repository is empty

Jump to

Keyboard shortcuts

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