controller

package
v0.0.0-...-a65e8f8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinController

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

CoinController has the business rules and handles requests

func ProvideCoinCntrl

func ProvideCoinCntrl(r *repository.CoinRepository) (CoinController, error)

ProvideCoinCntrl from repository

func (CoinController) Create

func (c CoinController) Create(w http.ResponseWriter, r *http.Request)

Create controls post request to endpoint/

func (CoinController) Delete

func (c CoinController) Delete(w http.ResponseWriter, r *http.Request)

Delete controls delete request to endpoint/{id}

func (CoinController) Index

Index controls requests to endpoint/

func (CoinController) Show

Show controls requests to endpoint/{id}

func (CoinController) Update

func (c CoinController) Update(w http.ResponseWriter, r *http.Request)

Update controls put request to endpoint/{id}

type MarketController

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

MarketController has the business rules and handles requests

func ProvideMarketCntrl

func ProvideMarketCntrl(r *repository.MarketRepository) (MarketController, error)

ProvideMarketCntrl from repository

func (MarketController) Create

Create controls post request to endpoint/

func (MarketController) Delete

Delete controls delete request to endpoint/{id}

func (MarketController) Index

Index controls requests to endpoint/

func (MarketController) Show

Show controls requests to endpoint/{id}

type OrderController

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

OrderController has the business rules and handles requests

func ProvideOrderCntrl

func ProvideOrderCntrl(r *repository.OrderRepository) (OrderController, error)

ProvideOrderCntrl from repository

func (OrderController) Create

Create controls post request to endpoint/

func (OrderController) Delete

Delete controls delete request to endpoint/{id}

Jump to

Keyboard shortcuts

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