Documentation ¶
Index ¶
- func AddFileToZip(zipWriter *zip.Writer, filename string) error
- func WriteFile(filename string, fileContent []byte) error
- func ZipFiles(filename string, files []string) error
- type MainController
- func (MainController *MainController) CliDebugger(w http.ResponseWriter, r *http.Request)
- func (MainController *MainController) ClientStateDebugger(w http.ResponseWriter, r *http.Request)
- func (MainController *MainController) GamechainDebugger(w http.ResponseWriter, r *http.Request)
- func (MainController *MainController) GetState(w http.ResponseWriter, r *http.Request)
- func (MainController *MainController) RunCli(w http.ResponseWriter, r *http.Request)
- func (MainController *MainController) RunMatchCmd(matchId string, cmdName string) ([]byte, error)
- func (MainController *MainController) SaveState(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MainController ¶
type MainController struct {
// contains filtered or unexported fields
}
func NewMainController ¶
func NewMainController(cliFilePath string, privateKeyFilePath string) *MainController
func (*MainController) CliDebugger ¶
func (MainController *MainController) CliDebugger(w http.ResponseWriter, r *http.Request)
func (*MainController) ClientStateDebugger ¶
func (MainController *MainController) ClientStateDebugger(w http.ResponseWriter, r *http.Request)
func (*MainController) GamechainDebugger ¶
func (MainController *MainController) GamechainDebugger(w http.ResponseWriter, r *http.Request)
func (*MainController) GetState ¶
func (MainController *MainController) GetState(w http.ResponseWriter, r *http.Request)
func (*MainController) RunCli ¶
func (MainController *MainController) RunCli(w http.ResponseWriter, r *http.Request)
func (*MainController) RunMatchCmd ¶
func (MainController *MainController) RunMatchCmd(matchId string, cmdName string) ([]byte, error)
func (*MainController) SaveState ¶
func (MainController *MainController) SaveState(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.