Documentation ¶
Index ¶
- Variables
- type VouchersController
- func (vc *VouchersController) AddVoucherToMap(uid string, voucherPrepare models.PrepareVoucherInfo)
- func (vc *VouchersController) GetListForPhone(payload []byte, uid string, voucherid string, phoneNb string) (interface{}, error)
- func (vc *VouchersController) GetUserVouchersByTimestampOld(uid string, timestamp string) (vouchers []hestia.Voucher, err error)
- func (vc *VouchersController) GetVoucherFromMap(uid string) (models.PrepareVoucherInfo, error)
- func (vc *VouchersController) Prepare(payload []byte, uid string, voucherid string, phoneNb string) (interface{}, error)
- func (vc *VouchersController) RemoveVoucherFromMap(uid string)
- func (vc *VouchersController) Status(payload []byte, uid string, voucherid string, phoneNb string, _ bool) (interface{}, error)
- func (vc *VouchersController) Store(payload []byte, uid string, voucherId string, phoneNb string) (interface{}, error)
- func (vc *VouchersController) Update(c *gin.Context)
- type VouchersControllerV2
- func (vc *VouchersControllerV2) AddVoucherToMapV2(uid string, voucherPrepare models.PrepareVoucherInfoV2)
- func (vc *VouchersControllerV2) GetListForPhoneV2(_ []byte, _ string, _ string, phoneNb string, _ bool) (interface{}, error)
- func (vc *VouchersControllerV2) GetVoucherFromMapV2(uid string) (models.PrepareVoucherInfoV2, error)
- func (vc *VouchersControllerV2) PrepareV2(payload []byte, uid string, voucherid string, phoneNb string, test bool) (interface{}, error)
- func (vc *VouchersControllerV2) RemoveVoucherFromMapV2(uid string)
- func (vc *VouchersControllerV2) StatusV2(_ []byte, uid string, _ string, _ string, test bool) (interface{}, error)
- func (vc *VouchersControllerV2) StoreV2(payload []byte, uid string, voucherId string, _ string, test bool) (interface{}, error)
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 (*VouchersController) GetUserVouchersByTimestampOld ¶
func (*VouchersController) GetVoucherFromMap ¶
func (vc *VouchersController) GetVoucherFromMap(uid string) (models.PrepareVoucherInfo, error)
func (*VouchersController) RemoveVoucherFromMap ¶
func (vc *VouchersController) RemoveVoucherFromMap(uid string)
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 (*VouchersControllerV2) GetVoucherFromMapV2 ¶
func (vc *VouchersControllerV2) GetVoucherFromMapV2(uid string) (models.PrepareVoucherInfoV2, error)
func (*VouchersControllerV2) RemoveVoucherFromMapV2 ¶
func (vc *VouchersControllerV2) RemoveVoucherFromMapV2(uid string)
Click to show internal directories.
Click to hide internal directories.