model

package
v0.0.0-...-aead407 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Stone = iota
	Cielo
)

Variables

View Source
var AcquireFromString = map[string]Acquire{
	"Stone": Stone,
	"Cielo": Cielo,
}
View Source
var AcquireToString = map[Acquire]string{
	Stone: "Stone",
	Cielo: "Cielo",
}

Functions

This section is empty.

Types

type Acquire

type Acquire int

Acquire type

func (Acquire) MarshalJSON

func (a Acquire) MarshalJSON() ([]byte, error)

func (Acquire) String

func (a Acquire) String() string

func (*Acquire) UnmarshalJSON

func (a *Acquire) UnmarshalJSON(text []byte) error

type Card

type Card struct {
	ID  uuid.UUID `gorm:"type:uuid;primary_key;" json:"id,omitempty"`
	PAN string    `gorm:"column:pan;size:14;not null;" json:"pan,omitempty"`
	CVV string    `gorm:"column:cvv;size:4;not null;" json:"cvv,omitempty"`
}

Card struct

func (*Card) Create

func (c *Card) Create() (err error)

Create func

func (*Card) Delete

func (c *Card) Delete() (err error)

Delete func

func (*Card) Find

func (c *Card) Find() (card Card, err error)

Find func

func (*Card) Get

func (c *Card) Get() (cards []Card, err error)

Get func

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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