Documentation
¶
Index ¶
- Constants
- func Run(ctx context.Context, args []string) int
- type RPCHandler
- func (h *RPCHandler) Bind()
- func (h *RPCHandler) HandleGameReconfigure(ctx context.Context, req *rpc.AbstractRequest) error
- func (h *RPCHandler) HandleGameStop(ctx context.Context, req *rpc.AbstractRequest) error
- func (h *RPCHandler) HandleSnapshotCreate(ctx context.Context, req *rpc.AbstractRequest) error
- func (h *RPCHandler) HandleSnapshotUndo(ctx context.Context, req *rpc.AbstractRequest) error
Constants ¶
View Source
const ScopeName = "github.com/kofuk/premises/runner/internal/commands/mclauncher"
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.