microdeposits

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountMicroDeposits

func GetAccountMicroDeposits(cfg *config.Config, repo Repository) http.HandlerFunc

func GetMicroDeposits

func GetMicroDeposits(cfg *config.Config, repo Repository) http.HandlerFunc

func InitiateMicroDeposits

func InitiateMicroDeposits(
	cfg *config.Config,
	companyIdentification string,
	repo Repository,
	transferRepo transfers.Repository,
	customersClient customers.Client,
	accountDecryptor accounts.Decryptor,
	fundStrategy fundflow.Strategy,
	pub pipeline.XferPublisher,
) http.HandlerFunc

func NewRepo

func NewRepo(db *sql.DB) *sqlRepo

func NotImplemented

func NotImplemented(cfg *config.Config) http.HandlerFunc

Types

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

type Router

type Router struct {
	InitiateMicroDeposits   http.HandlerFunc
	GetMicroDeposits        http.HandlerFunc
	GetAccountMicroDeposits http.HandlerFunc
}

func NewRouter

func NewRouter(
	cfg *config.Config,
	repo Repository,
	transferRepo transfers.Repository,
	customersClient customers.Client,
	accountDecryptor accounts.Decryptor,
	fundStrategy fundflow.Strategy,
	pub pipeline.XferPublisher,
) *Router

func (*Router) RegisterRoutes

func (c *Router) RegisterRoutes(r *mux.Router)

Jump to

Keyboard shortcuts

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