Exemple #1
0
type OkMsg struct {
	_ string "Ok"
}

type ErrorMsg struct {
	Msg string "Error"
}

type PingMsg struct {
	Data string "Ping"
}

type RunShellMsg struct {
	Term string "RunShell"
}

type RunProgramMsg struct {
	Args []string "RunProgram"
	Pwd  string
	Path string
}

var messageFactory = ipc.NewMsgFactory(
	new(OkMsg),
	new(ErrorMsg),
	new(PingMsg),
	new(RunShellMsg),
	new(RunProgramMsg),
)
Exemple #2
0
type UnmountFileMsg struct {
	Id   int "UnmountFile"
	File string
}

type LogsMsg struct {
	Count  int "Logs"
	Follow bool
}

type LogData struct {
	Lines []string "LogData"
}

var messageFactory = ipc.NewMsgFactory(
	new(PingMsg),
	new(OkMsg),
	new(ErrorMsg),
	new(GetConfigMsg),
	new(ListProfilesMsg),
	new(ListProfilesResp),
	new(LaunchMsg),
	new(ListSandboxesMsg),
	new(ListSandboxesResp),
	new(KillSandboxMsg),
	new(MountFilesMsg),
	new(UnmountFileMsg),
	new(LogsMsg),
	new(LogData),
)