controller

package
v0.0.0-...-36c47eb Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, filename string) error

func WriteFile

func WriteFile(filename string, fileContent []byte) error

func ZipFiles

func ZipFiles(filename string, files []string) error

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)

Jump to

Keyboard shortcuts

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