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.
27 lines
340 B
27 lines
340 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"
|
|
}
|
|
|
|
var messageFactory = ipc.NewMsgFactory(
|
|
new(OkMsg),
|
|
new(ErrorMsg),
|
|
new(PingMsg),
|
|
new(RunShellMsg),
|
|
)
|
|
|