How slotopol/server works
Slotopol is an HTTP slots and keno game server with a companion CLI for game discovery and reel analysis. The main user workflow is to authenticate, select or join a game, submit gameplay actions, and receive results; the service maintains club and user balances and game sessions. Its catalog spans provider-specific slot algorithms and keno variants, with configurable reel sets and RTP analysis. The README documents the database and gameplay model; sampled source confirms key routing, authentication, storage, and scanning links, but not every runtime call path.
Main entry points: routes.go HTTP routes · logic.go Game session logic · storage.go Persistent storage · linkdata.go Game registry
Components 21
HTTP service
- HTTP routes
api/routes.go - Authentication
api/auth.go - Configuration
config/config.go - Web startup
cmd/web.go
Accounts and play
- Club API
api/club.go - User API
api/user.go - User properties
api/props.go - Game API
api/game.go - Slot gameplay API
api/slot.go - Keno gameplay API
api/keno.go - Game session logic
core/logic.go - Persistent storage
core/storage.go
Game algorithms
- Game registry
game/linkdata.go - Algorithm registration
core/links.go - Provider slot rules
game/slot - Keno variants
game/keno
CLI and analysis
- Game listing
cmd/list.go - RTP scanning
cmd/scan.go - Game filters
game/filter.go
Other components
- Player
- HTTP client
Connections 28
- HTTP client → HTTP routes: sends requests
api/routes.go - HTTP routes → Authentication: gates routes
api/routes.go - HTTP routes → Game API: routes game calls
api/routes.go - HTTP routes → Slot gameplay API: routes slot calls
api/routes.go - HTTP routes → User properties: routes property calls
api/routes.go - HTTP routes → User API: routes user calls
api/routes.go - Player → HTTP client: plays through
- Web startup → HTTP routes: serves routes
cmd/web.go - Web startup → Configuration: uses settings
cmd/web.go - Authentication → Persistent storage: reads sessions
api/auth.go - Game API → Game session logic: manages sessions
- Slot gameplay API → Game session logic: runs gameplay
- Keno gameplay API → Game session logic: runs gameplay
- Game session logic → Game registry: uses game metadata
core/logic.go - Game session logic → Persistent storage: persists changes
- Club API → Persistent storage: manages club data
- User API → Persistent storage: manages users
- User properties → Persistent storage: accesses properties
api/props.go - Algorithm registration → Provider slot rules: registers algorithms
core/links.go - Algorithm registration → Keno variants: registers variants
core/links.go - Algorithm registration → Game registry: populates catalog
core/links.go - Slot gameplay API → Provider slot rules: runs slot rules
api/slot.go - Keno gameplay API → Keno variants: runs keno rules
- Game listing → Game registry: lists games
cmd/list.go - Game listing → Game filters: applies filters
cmd/list.go - RTP scanning → Game registry: selects game
cmd/scan.go - RTP scanning → Provider slot rules: scans reels
- RTP scanning → Keno variants: analyzes keno