Documentation
¶
Index ¶
- Constants
- type AddAmountParams
- type DeleteParams
- type GetBalanceParams
- type TestWalletServer
- func (s *TestWalletServer) AddAmount(w http.ResponseWriter, req *http.Request)
- func (s *TestWalletServer) Create(w http.ResponseWriter, req *http.Request)
- func (s *TestWalletServer) Delete(w http.ResponseWriter, req *http.Request)
- func (s *TestWalletServer) GetBalance(w http.ResponseWriter, req *http.Request)
- func (s *TestWalletServer) GetBalanceValidated(w http.ResponseWriter, req *http.Request)
- func (s *TestWalletServer) NodeReadyMiddleware(next http.Handler) http.Handler
- func (s *TestWalletServer) RegisterHandlers(httpServerMux *http.ServeMux)
- func (s *TestWalletServer) Start(ctx context.Context) error
- func (s *TestWalletServer) Stop(ctx context.Context) error
- func (s *TestWalletServer) Transfer(w http.ResponseWriter, req *http.Request)
- type TestWalletServerAddAmountResult
- type TestWalletServerCreateResult
- type TestWalletServerDeleteResult
- type TestWalletServerGetBalanceResult
- type TestWalletServerTransferResult
- type TransferParams
Constants ¶
View Source
const (
APIRequestTimeout = 25 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAmountParams ¶
type DeleteParams ¶
type DeleteParams struct {
WalletRef string
}
type GetBalanceParams ¶
type GetBalanceParams struct {
WalletRef string
}
type TestWalletServer ¶
type TestWalletServer struct {
// contains filtered or unexported fields
}
func NewTestWalletServer ¶
func NewTestWalletServer(logger log.Logger, api configuration.TestWalletAPI, feeder conveyor.EventInputer, accessor beat.History) *TestWalletServer
func (*TestWalletServer) AddAmount ¶
func (s *TestWalletServer) AddAmount(w http.ResponseWriter, req *http.Request)
func (*TestWalletServer) Create ¶
func (s *TestWalletServer) Create(w http.ResponseWriter, req *http.Request)
func (*TestWalletServer) Delete ¶
func (s *TestWalletServer) Delete(w http.ResponseWriter, req *http.Request)
func (*TestWalletServer) GetBalance ¶
func (s *TestWalletServer) GetBalance(w http.ResponseWriter, req *http.Request)
func (*TestWalletServer) GetBalanceValidated ¶
func (s *TestWalletServer) GetBalanceValidated(w http.ResponseWriter, req *http.Request)
func (*TestWalletServer) NodeReadyMiddleware ¶
func (s *TestWalletServer) NodeReadyMiddleware(next http.Handler) http.Handler
NodeReadyMiddleware returns 503 ServiceUnavailable until node is ready
func (*TestWalletServer) RegisterHandlers ¶
func (s *TestWalletServer) RegisterHandlers(httpServerMux *http.ServeMux)
func (*TestWalletServer) Transfer ¶
func (s *TestWalletServer) Transfer(w http.ResponseWriter, req *http.Request)
type TransferParams ¶
Click to show internal directories.
Click to hide internal directories.