mirror of https://github.com/xSmurf/oz.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
433 B
33 lines
433 B
package ozinit
|
|
|
|
import "github.com/subgraph/oz/ipc"
|
|
|
|
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
|
|
}
|
|
|
|
var messageFactory = ipc.NewMsgFactory(
|
|
new(OkMsg),
|
|
new(ErrorMsg),
|
|
new(PingMsg),
|
|
new(RunShellMsg),
|
|
new(RunProgramMsg),
|
|
)
|