server

package
v0.0.0-...-d00d8f6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreditCardHandler

type CreditCardHandler interface {
	HandleCard() http.Handler
}

type CreditCardRequest

type CreditCardRequest struct {
	Number         string `json:"number"`
	Holder         string `json:"holder"`
	ExpirationDate string `json:"expirationDate"`
	Brand          string `json:"brand"`
}

type KafkaManager

type KafkaManager interface {
	SendEvent(p PaymentEvent) error
}

type PaymentEvent

type PaymentEvent struct {
	PaymentId      string    `json:"paymentId"`
	CardId         string    `json:"cardId"`
	Holder         string    `json:"holder"`
	Number         string    `json:"number"`
	Cvv            string    `json:"cvv"`
	Brand          string    `json:"brand"`
	ExpirationDate time.Time `json:"expirationDate"`
	Amount         int       `json:"amount"`
	Description    string    `json:"description"`
}

type PaymentHandler

type PaymentHandler interface {
	HandlePay() http.Handler
}

type PaymentRequest

type PaymentRequest struct {
	CardId      string `json:"cardId"`
	Amount      int    `json:"amount"`
	Description string `json:"description"`
	Cvv         string `json:"cvv"`
}

type VaultManager

type VaultManager interface {
	Write(key string, data map[string]interface{}) error
	Read(key string) (map[string]interface{}, error)
	Delete(key string) error
	Encrypt(data string) (string, error)
}

Directories

Path Synopsis
cmd
http

Jump to

Keyboard shortcuts

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