models

package
v0.0.0-...-3fdfd18 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	gorm.Model
	Trash           bool
	MaxMultiplier   float32 `json:"max_multiplier"`
	MinMultiplier   float32 `json:"min_multiplier"`
	Max             float32 `json:"max"`
	Min             float32 `json:"min"`
	SpeedSetting    float32 `json:"speed_setting"`
	CooldownSetting float32 `json:"cooldown_setting"`
	HouseEdge       float32 `json:"house_edge"`
	Round           float32 `json:"round"`
	MinTotalWager   float32 `json:"min_total_wager"`
}

type PlacedBet

type PlacedBet struct {
	gorm.Model
	Trash            bool
	UserID           uint
	WalletID         uint
	RoundID          uint
	Status           uint8
	PayoutMultiplier float32
	Amount           float32
}

type Round

type Round struct {
	gorm.Model
	Trash      bool
	Multiplier float32
}

type User

type User struct {
	gorm.Model
	Name  string
	Trash bool
}

type Wallet

type Wallet struct {
	gorm.Model
	Trash          bool
	UserID         uint    `json:"user_id"`
	WalletAddress  string  `json:"wallet_address"`
	WalletStatus   uint8   `json:"wallet_status"`
	TradingBalance float32 `json:"trading_balance"`
	FundingBalance float32 `json:"funding_balance"`
	WagerAmount    float32 `json:"wager_amount"`
}

Jump to

Keyboard shortcuts

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