Documentation
¶
Index ¶
- type Club
- func (c *Club) AddClient(clientName string)
- func (c *Club) AddClientToQueue(clientName string)
- func (c *Club) Close(endTime time.Time, price int, inputTimeFormat string)
- func (c *Club) DeleteClient(clientName string)
- func (c *Club) EndClientSession(curClient client.Client, price int)
- func (c Club) FindTableByClient(clientName string) int
- func (c Club) GetIncome() []string
- func (c Club) IsInClub(clientName string) bool
- func (c Club) IsTableBusy(tableId int) bool
- func (c Club) QueueIsTooBig(maxSize int) bool
- func (c *Club) StartNewSession(curEventClient client.Client, price int, tableId int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Club ¶
type Club struct {
// contains filtered or unexported fields
}
func (*Club) AddClientToQueue ¶
adds client to queue
func (*Club) DeleteClient ¶
removes client name from all clients slice
func (*Club) EndClientSession ¶
ends given client session and starts new if queue is not empty
func (Club) FindTableByClient ¶
returns index of the table searched by client name, set clientName = "" to search free table, if there are no such table returns -1
func (Club) IsTableBusy ¶
checks if given table is busy. If yes, returns true; if not, returns false
func (Club) QueueIsTooBig ¶
checks if queue is over limit size given in file
Click to show internal directories.
Click to hide internal directories.