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.
subgraph-oz/oz-init/protocol.go

34 lines
446 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
Path string
}
var messageFactory = ipc.NewMsgFactory(
new(OkMsg),
new(ErrorMsg),
new(PingMsg),
new(RunShellMsg),
new(RunProgramMsg),
)