bet

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 IBet

type IBet interface {
	Id() string
	Name() string
	Description() string
	Challenged() challenged.IChallenged
	Value() float32
	Credits() float32
	IsOpen() bool
	IsSuspended() bool
	IsClosed() bool
	Gamblers() []gambler.IGambler

	Open() error
	Close() error
	Suspend() error

	ChangeName(name string) error
	ChangeDescription(description string) error
	ChangeValue(value float32) error
	AddGambler(gambler.IGambler) error
	RemoveGambler(gambler.IGambler) error

	Deposit(float32) error
	Withdraw(float32) error

	Notificator() notification.INotificator
}

type IState

type IState interface {
	ChangeName(name string) error
	ChangeDescription(description string) error
	ChangeValue(value float32) error

	Deposit(float32) error
	Withdraw(float32) error

	AddGambler(gambler gambler.IGambler) error
	RemoveGambler(gambler gambler.IGambler) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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