response

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardBinCheckResponse

type CardBinCheckResponse struct {
	CardType  string         `json:"cardType"`
	Bank      string         `json:"bank"`
	Key       string         `json:"key"`
	Messages  []errorMessage `json:"messages"`
	Validated bool           `json:"validated"`
	Stat      string         `json:"stat"`
	CardBIN   string
}

CardBinCheckResponse bank card check result

func New

func New(card string) *CardBinCheckResponse

New get cardBinCheckResponse by card

func (*CardBinCheckResponse) WriteResponse

func (cbcr *CardBinCheckResponse) WriteResponse(w io.Writer, c ContentType) error

WriteResponse writes response to io.Writer

type ContentType

type ContentType int

ContentType CardBinCheckResponse content type

const (
	// JSONContentType JSON content type
	JSONContentType ContentType = iota
	// TextContentType JSON content type
	TextContentType
)

Jump to

Keyboard shortcuts

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