Documentation ¶
Index ¶
- func GenerateMultiTemplate() multitemplate.Renderer
- func TimeFormatter(t time.Time) string
- type Env
- type MerchantTransactions
- type PurchaseModel
- type SearchModel
- type Service
- func (s *Service) BrowserDashboard(c *gin.Context)
- func (s *Service) DailySettlement(c *gin.Context)
- func (s *Service) GetAll(c *gin.Context)
- func (s *Service) IndexPage(c *gin.Context)
- func (s *Service) LandingPage(c *gin.Context)
- func (s *Service) MakeDummyTransaction(c *gin.Context)
- func (s *Service) MerchantRegistration(c *gin.Context)
- func (s *Service) MerchantTransactionsEndpoint(c *gin.Context)
- func (s *Service) MerchantViews(c *gin.Context)
- func (s *Service) ReportIssueEndpoint(c *gin.Context)
- func (s *Service) Stream(c *gin.Context)
- func (s *Service) TransactionByTid(c *gin.Context)
- func (s *Service) TransactionsCount(c *gin.Context)
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMultiTemplate ¶
func GenerateMultiTemplate() multitemplate.Renderer
func TimeFormatter ¶
Types ¶
type Env ¶
func (*Env) GetTransactionbyID ¶
type MerchantTransactions ¶
type MerchantTransactions struct { PurchaseAmount float32 `json:"purchase_amount"` AllTransactions int `json:"purchases_count"` SuccessfulTransactions int `json:"successful_transactions"` FailedTransactions int `json:"failed_transactions"` }
func ToPurchase ¶
func ToPurchase(f ebs_fields.PurchaseFields) MerchantTransactions
func (*MerchantTransactions) MarshalBinary ¶
func (p *MerchantTransactions) MarshalBinary() ([]byte, error)
To allow Redis to use this struct directly in marshaling
func (*MerchantTransactions) UnmarshalBinary ¶
func (p *MerchantTransactions) UnmarshalBinary(data []byte) error
To allow Redis to use this struct directly in marshaling
type PurchaseModel ¶
type PurchaseModel struct { gorm.Model ebs_fields.PurchaseFields }
type SearchModel ¶
type Service ¶
type Service struct {
Redis *redis.Client
}
func (*Service) BrowserDashboard ¶
func (*Service) DailySettlement ¶
This endpoint is highly experimental. It has many security issues and it is only used by us for testing and prototyping only. YOU HAVE TO USE PROPER AUTHENTICATION system if you decide to go with it. See apigateway package if you are interested.
func (*Service) LandingPage ¶
func (*Service) MakeDummyTransaction ¶
func (*Service) MerchantRegistration ¶
func (*Service) MerchantTransactionsEndpoint ¶
func (*Service) MerchantViews ¶
func (*Service) ReportIssueEndpoint ¶
func (*Service) TransactionByTid ¶
func (*Service) TransactionsCount ¶
type Transaction ¶
type Transaction struct { gorm.Model ebs_fields.GenericEBSResponseFields }
Click to show internal directories.
Click to hide internal directories.