a

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 ACallbackController

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

func NewACallbackController

func NewACallbackController(
	withdrawalService withdrawalService,
	depositService depositService,
) *ACallbackController

func (*ACallbackController) HandleDepositCallback

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

func (ACallbackController) HandleWithdrawCallback

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

func (*ACallbackController) Register

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

type AProvider

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

func NewAProvider

func NewAProvider(
	logger *slog.Logger,
	httpClient httpClientWithCb,
	token string,
) *AProvider

func (*AProvider) CanDo

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

func (*AProvider) Execute

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

func (*AProvider) GetName

func (p *AProvider) GetName() string

type AProviderMock

type AProviderMock struct {
}

func NewAProviderMock

func NewAProviderMock() *AProviderMock

func (*AProviderMock) CanDo

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

func (*AProviderMock) Execute

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

func (*AProviderMock) GetName

func (p *AProviderMock) GetName() string

Jump to

Keyboard shortcuts

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