app

package
v0.0.0-...-2ef2c73 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedEvent = fmt.Errorf("unexpected event received")
	ErrNoTarget        = fmt.Errorf("no target found")
)

Functions

This section is empty.

Types

type Master

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

func NewMaster

func NewMaster(cfg *domain.MasterConfig, state *game.Game, logger *log.Logger, redisClient *redis.Client) *Master

func (*Master) Run

func (m *Master) Run()

type Player

type Player struct {
	ID string
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer(cfg *domain.PlayerConfig, redisClient *redis.Client, logger *log.Logger) *Player

func (*Player) Run

func (p *Player) Run()

Jump to

Keyboard shortcuts

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