controllers

package
v0.0.0-...-41575ae Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Whitelist = make(map[string]bool)
)

Functions

This section is empty.

Types

type VouchersController

type VouchersController struct {
	PreparesVouchers map[string]models.PrepareVoucherInfo

	TxsAvailable bool
	Plutus       services.PlutusService
	Hestia       services.HestiaService
	Bitcou       services.BitcouService
	Obol         obol.ObolService
	// contains filtered or unexported fields
}

func (*VouchersController) AddVoucherToMap

func (vc *VouchersController) AddVoucherToMap(uid string, voucherPrepare models.PrepareVoucherInfo)

func (*VouchersController) GetListForPhone

func (vc *VouchersController) GetListForPhone(payload []byte, uid string, voucherid string, phoneNb string) (interface{}, error)

func (*VouchersController) GetUserVouchersByTimestampOld

func (vc *VouchersController) GetUserVouchersByTimestampOld(uid string, timestamp string) (vouchers []hestia.Voucher, err error)

func (*VouchersController) GetVoucherFromMap

func (vc *VouchersController) GetVoucherFromMap(uid string) (models.PrepareVoucherInfo, error)

func (*VouchersController) Prepare

func (vc *VouchersController) Prepare(payload []byte, uid string, voucherid string, phoneNb string) (interface{}, error)

func (*VouchersController) RemoveVoucherFromMap

func (vc *VouchersController) RemoveVoucherFromMap(uid string)

func (*VouchersController) Status

func (vc *VouchersController) Status(payload []byte, uid string, voucherid string, phoneNb string, _ bool) (interface{}, error)

func (*VouchersController) Store

func (vc *VouchersController) Store(payload []byte, uid string, voucherId string, phoneNb string) (interface{}, error)

func (*VouchersController) Update

func (vc *VouchersController) Update(c *gin.Context)

type VouchersControllerV2

type VouchersControllerV2 struct {
	PreparesVouchers map[string]models.PrepareVoucherInfoV2

	TxsAvailable bool
	Plutus       services.PlutusService
	Hestia       services.HestiaService
	HestiaTest   services.HestiaService
	Bitcou       services.BitcouService
	Obol         obol.ObolService
	Adrestia     services.AdrestiaService
	// contains filtered or unexported fields
}

func (*VouchersControllerV2) AddVoucherToMapV2

func (vc *VouchersControllerV2) AddVoucherToMapV2(uid string, voucherPrepare models.PrepareVoucherInfoV2)

func (*VouchersControllerV2) GetListForPhoneV2

func (vc *VouchersControllerV2) GetListForPhoneV2(_ []byte, _ string, _ string, phoneNb string, _ bool) (interface{}, error)

func (*VouchersControllerV2) GetVoucherFromMapV2

func (vc *VouchersControllerV2) GetVoucherFromMapV2(uid string) (models.PrepareVoucherInfoV2, error)

func (*VouchersControllerV2) PrepareV2

func (vc *VouchersControllerV2) PrepareV2(payload []byte, uid string, voucherid string, phoneNb string, test bool) (interface{}, error)

func (*VouchersControllerV2) RemoveVoucherFromMapV2

func (vc *VouchersControllerV2) RemoveVoucherFromMapV2(uid string)

func (*VouchersControllerV2) StatusV2

func (vc *VouchersControllerV2) StatusV2(_ []byte, uid string, _ string, _ string, test bool) (interface{}, error)

func (*VouchersControllerV2) StoreV2

func (vc *VouchersControllerV2) StoreV2(payload []byte, uid string, voucherId string, _ string, test bool) (interface{}, error)

Jump to

Keyboard shortcuts

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