controllers

package
v0.0.0-...-90e23d6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlackListCardController

func BlackListCardController(c *gin.Context)

func GetCardInfoController

func GetCardInfoController(c *gin.Context)

func HealthCheckController

func HealthCheckController(c *gin.Context)

func LoginUserController

func LoginUserController(c *gin.Context)

func LogoutUserController

func LogoutUserController(c *gin.Context)

func RegisterUserController

func RegisterUserController(c *gin.Context)

func ReportCardFraudController

func ReportCardFraudController(c *gin.Context)

Types

type BinCardResponse

type BinCardResponse struct {
	Brand   string `json:"brand"`
	Type    string `json:"type"`
	Country struct {
		Name string `json:"name"`
	} `json:"country"`
	Bank struct {
		Name string `json:"name"`
	} `json:"bank"`
}

type Card

type Card struct {
	Type          string   `json:"type"`
	Issuer        string   `json:"issuer"`
	IssueCountry  string   `json:"issueCountry"`
	Network       string   `json:"network"`
	CardNumber    string   `json:"cardNumber"`
	Activities    []string `json:"activities"`
	IsBlackListed bool     `json:"isBlackListed"`
}

type HealthCheckResponse

type HealthCheckResponse struct {
	Status    string    `json:"status"`
	Message   string    `json:"message"`
	TimeStamp time.Time `json:"timeStamp"`
}

Jump to

Keyboard shortcuts

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