controller

package
v0.0.0-...-c53624e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountController

type AccountController interface {
	Create(w http.ResponseWriter, r *http.Request)
	Fetch(w http.ResponseWriter, r *http.Request)
	GetBalance(w http.ResponseWriter, r *http.Request)
}

AccountController is the interface that wraps http handle methods related to the accounts.

func NewAccountController

func NewAccountController(accUC usecase.AccountUseCase) AccountController

NewAccountController instantiates a new account controller.

type AuthController

type AuthController interface {
	Login(w http.ResponseWriter, r *http.Request)
}

AuthController is the interface that wraps http handle methods related to authentication.

func NewAuthController

func NewAuthController(authUC usecase.AuthUseCase) AuthController

NewAuthController instantiates a new auth controller.

type TransferController

type TransferController interface {
	Create(w http.ResponseWriter, r *http.Request)
	Fetch(w http.ResponseWriter, r *http.Request)
}

TransferController is the interface that wraps http handle methods related to the transfers.

func NewTransferController

func NewTransferController(trfUC usecase.TransferUseCase, authUC usecase.AuthUseCase) TransferController

NewTransferController instantiates a new transfer controller.

Jump to

Keyboard shortcuts

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