Back to godoc.org

Package dashboard

v0.0.0-...-d4ff528
Latest Go to latest

The latest major version is .

Published: Jun 28, 2020 | License: MIT | Module: github.com/adonese/noebs

Index

func BrowserDashboard

func BrowserDashboard(c *gin.Context)

func DailySettlement

func DailySettlement(c *gin.Context)

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 GenerateMultiTemplate

func GenerateMultiTemplate() multitemplate.Renderer

func GetAll

func GetAll(c *gin.Context)

func IndexPage

func IndexPage(c *gin.Context)

func LandingPage

func LandingPage(c *gin.Context)

func MakeDummyTransaction

func MakeDummyTransaction(c *gin.Context)

func MerchantRegistration

func MerchantRegistration(c *gin.Context)

func MerchantTransactionsEndpoint

func MerchantTransactionsEndpoint(c *gin.Context)

func MerchantViews

func MerchantViews(c *gin.Context)

func ReportIssueEndpoint

func ReportIssueEndpoint(c *gin.Context)

func Stream

func Stream(c *gin.Context)

func TimeFormatter

func TimeFormatter(t time.Time) string

func TransactionByTid

func TransactionByTid(c *gin.Context)

func TransactionsCount

func TransactionsCount(c *gin.Context)

type Env

type Env struct {
	Db *gorm.DB
}

func (*Env) GetTransactionbyID

func (e *Env) GetTransactionbyID(c *gin.Context)

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 (*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 SearchModel struct {
	Page       int    `form:"page"`
	TerminalID string `form:"tid" binding:"required"`
}

type Transaction

type Transaction struct {
	gorm.Model
	ebs_fields.GenericEBSResponseFields
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier