b

package
v0.0.0-...-7e31de2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCallbackController

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

func NewBCallbackController

func NewBCallbackController(
	withdrawalService withdrawalService,
	depositService depositService,
) *BCallbackController

func (*BCallbackController) HandleDepositCallback

func (ctrl *BCallbackController) HandleDepositCallback(ctx echo.Context) error

func (BCallbackController) HandleWithdrawCallback

func (ctrl BCallbackController) HandleWithdrawCallback(ctx echo.Context) error

func (*BCallbackController) Register

func (ctrl *BCallbackController) Register(gp *echo.Group)

type BProvider

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

func NewBProvider

func NewBProvider(
	logger *slog.Logger,
	httpClient httpClientWithCb,
	token string,
) *BProvider

func (*BProvider) CanDo

func (p *BProvider) CanDo(tx payment.Withdrawal) bool

func (*BProvider) Execute

func (p *BProvider) Execute(ctx context.Context, tx payment.Withdrawal) (string, error)

func (*BProvider) GetName

func (p *BProvider) GetName() string

type BProviderMock

type BProviderMock struct {
}

func NewBProviderMock

func NewBProviderMock() *BProviderMock

func (*BProviderMock) CanDo

func (p *BProviderMock) CanDo(tx payment.Withdrawal) bool

func (*BProviderMock) Execute

func (p *BProviderMock) Execute(ctx context.Context, tx payment.Withdrawal) (string, error)

func (*BProviderMock) GetName

func (p *BProviderMock) GetName() string

Jump to

Keyboard shortcuts

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