Documentation
¶
Index ¶
- Constants
- type GameServer
- func (s *GameServer) DeleteVM(ctx context.Context, id string) bool
- func (s *GameServer) FindVM(ctx context.Context) (string, error)
- func (s *GameServer) IsAvailable() bool
- func (s *GameServer) SetUp(ctx context.Context, gameConfig *runner.Config, memSizeGB int, ...) string
- func (s *GameServer) StopVM(ctx context.Context, id string) bool
- func (s *GameServer) VMRunning(ctx context.Context, id string) bool
- type Handler
Constants ¶
View Source
const ( CacheKeyWorlds = "worlds" CacheKeyMCVersions = "mcversions" CacheKeySystemInfoPrefix = "system-info" )
View Source
const ScopeName = "github.com/kofuk/premises/controlpanel/internal/handler"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameServer ¶
type GameServer struct {
// contains filtered or unexported fields
}
func NewGameServer ¶
func NewGameServer(cfg *config.Config, h *Handler) *GameServer
func (*GameServer) IsAvailable ¶
func (s *GameServer) IsAvailable() bool
type Handler ¶
type Handler struct { GameServer *GameServer KVS kvs.KeyValueStore MCVersions mcversions.MCVersionsService Streaming *streaming.StreamingService // contains filtered or unexported fields }
func NewHandler ¶
func (*Handler) LaunchServer ¶
Click to show internal directories.
Click to hide internal directories.