entity

package
v0.0.0-...-33ea157 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gambler

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

func NewGambler

func NewGambler(id string, credits float32) (*Gambler, error)

func (Gambler) Credits

func (gambler Gambler) Credits() float32

func (*Gambler) Deposit

func (gambler *Gambler) Deposit(amount float32) error

func (Gambler) Id

func (gambler Gambler) Id() string

func (Gambler) Notificator

func (gambler Gambler) Notificator() notification.INotificator

Notificator returns the validation error container (notification.INotificator)

func (*Gambler) Withdraw

func (gambler *Gambler) Withdraw(amount float32) error

Jump to

Keyboard shortcuts

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