handler

package
v0.0.0-...-a655b0a Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandlerGraphSet = wire.NewSet(
	NewWalletCtlHandler,
)

Functions

func HandlerWrapper

func HandlerWrapper(hfn HandlerFn) http.HandlerFunc

handle http error

func JSONError

func JSONError(w http.ResponseWriter, err interface{}, code int)

Types

type HandlerFn

type HandlerFn func(r *http.Request) (interface{}, error)

type WalletCtlHandler

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

func NewWalletCtlHandler

func NewWalletCtlHandler(
	walletService *services.WalletService,
) *WalletCtlHandler

func (*WalletCtlHandler) AddWallet

func (w *WalletCtlHandler) AddWallet(req *http.Request) (interface{}, error)

func (*WalletCtlHandler) UpdateWalletBalance

func (w *WalletCtlHandler) UpdateWalletBalance(req *http.Request) (interface{}, error)

Jump to

Keyboard shortcuts

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