mclauncher

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ScopeName = "github.com/kofuk/premises/runner/internal/commands/mclauncher"

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string) int

Types

type RPCHandler

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

func NewRPCHandler

func NewRPCHandler(s *rpc.Server, game *game.Launcher) *RPCHandler

func (*RPCHandler) Bind

func (h *RPCHandler) Bind()

func (*RPCHandler) HandleGameReconfigure

func (h *RPCHandler) HandleGameReconfigure(ctx context.Context, req *rpc.AbstractRequest) error

func (*RPCHandler) HandleGameStop

func (h *RPCHandler) HandleGameStop(ctx context.Context, req *rpc.AbstractRequest) error

func (*RPCHandler) HandleSnapshotCreate

func (h *RPCHandler) HandleSnapshotCreate(ctx context.Context, req *rpc.AbstractRequest) error

func (*RPCHandler) HandleSnapshotUndo

func (h *RPCHandler) HandleSnapshotUndo(ctx context.Context, req *rpc.AbstractRequest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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