logic

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessGame

func ProcessGame(game *models.SlotGame, factor uint) (*money.Money, bool)

ProcessGame processes a game and returns the resulting transaction. Money is the absolute amount and if true it is a withdrawl (user lost money) else a deposit (user won money).

Types

type GameProvider

type GameProvider struct {
	// contains filtered or unexported fields
}

func (*GameProvider) GetGame

func (g *GameProvider) GetGame(id string) (*models.SlotGame, error)

func (*GameProvider) GetPublicKey

func (g *GameProvider) GetPublicKey() *ecdsa.PublicKey

func (*GameProvider) NewGame

func (g *GameProvider) NewGame(factor uint) (*models.SlotGame, error)

func (*GameProvider) SaveGame

func (g *GameProvider) SaveGame(game *models.SlotGame) error

Jump to

Keyboard shortcuts

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