Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AppendRoutes ¶
func (a *API) AppendRoutes(r chi.Router)
type App ¶
App is the main application, it contains all the components of the issuer service and is responsible for starting and stopping them.
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type ISO8583Client ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository() *Repository
func (*Repository) CreateMerchant ¶
func (r *Repository) CreateMerchant(merchant *models.Merchant) error
func (*Repository) CreatePayment ¶
func (r *Repository) CreatePayment(payment *models.Payment) error
func (*Repository) GetMerchant ¶
func (r *Repository) GetMerchant(merchantID string) (*models.Merchant, error)
func (*Repository) GetPayment ¶
func (r *Repository) GetPayment(merchantID, paymentID string) (*models.Payment, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *Repository, iso8583Client ISO8583Client) *Service
func (*Service) CreateMerchant ¶
func (*Service) CreatePayment ¶
Click to show internal directories.
Click to hide internal directories.