func New(s service.IPaymentService, mdw map[string][]endpoint.Middleware) Endpoints {
	eps := Endpoints{
		RechargeWalletEndpoint:   makeRechargeWalletEndpoint(s),
		ListTransactionsEndpoint: makeListTransactionsEndpoint(s),
	}

	// apply transport middlewares
	for _, m := range mdw["RechargeWallet"] {
		eps.RechargeWalletEndpoint = m(eps.RechargeWalletEndpoint)
	}

	for _, m := range mdw["ListTransactions"] {
		eps.ListTransactionsEndpoint = m(eps.ListTransactionsEndpoint)
	}

	return eps
}
// New returns a Endpoints struct that wraps the provided service, and wires in all of the
// expected endpoint middlewares
New returns a Endpoints struct that wraps the provided service, and wires in all of the
expected endpoint middlewares
// New returns a Endpoints struct that wraps the provided service and wires in all of the // expected endpoint middlewares
func New(s service.IPaymentService, mdw map[string][]endpoint.Middleware) Endpoints {
	eps := Endpoints{
		RechargeWalletEndpoint:   makeRechargeWalletEndpoint(s),
		ListTransactionsEndpoint: makeListTransactionsEndpoint(s),
	}
	for _, m := range mdw["RechargeWallet"] {
		eps.RechargeWalletEndpoint = m(eps.RechargeWalletEndpoint)
	}
	for _, m := range mdw["ListTransactions"] {
		eps.ListTransactionsEndpoint = m(eps.ListTransactionsEndpoint)
	}
	return eps
}
func New ( s service . IPaymentService , mdw map [ string ] [ ] endpoint . Middleware ) Endpoints { eps := Endpoints { RechargeWalletEndpoint : makeRechargeWalletEndpoint ( s ) , ListTransactionsEndpoint : makeListTransactionsEndpoint ( s ) , } for _ , m := range mdw [ " " ] { eps . RechargeWalletEndpoint = m ( eps . RechargeWalletEndpoint ) } for _ , m := range mdw [ " " ] { eps . ListTransactionsEndpoint = m ( eps . ListTransactionsEndpoint ) } return eps }
New returns a Endpoints struct that wraps the provided service, and wires in all of the
expected endpoint middlewares
New returns a Endpoints struct that wraps the provided service and wires in all of the expected endpoint middlewares
// apply transport middlewares