add programinfo

master
shengxiang 9 years ago
parent 3e052a52bb
commit e038b0e2a7

@ -12,6 +12,7 @@ It has these top-level messages:
NopRequest
Response
Request
ProgramInfo
ProgramStatus
StatusResponse
*/
@ -79,6 +80,38 @@ func (m *Request) GetName() string {
return ""
}
type ProgramInfo struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Command []string `protobuf:"bytes,2,rep,name=command" json:"command,omitempty"`
Dir *string `protobuf:"bytes,3,req,name=dir" json:"dir,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ProgramInfo) Reset() { *m = ProgramInfo{} }
func (m *ProgramInfo) String() string { return proto.CompactTextString(m) }
func (*ProgramInfo) ProtoMessage() {}
func (m *ProgramInfo) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *ProgramInfo) GetCommand() []string {
if m != nil {
return m.Command
}
return nil
}
func (m *ProgramInfo) GetDir() string {
if m != nil && m.Dir != nil {
return *m.Dir
}
return ""
}
type ProgramStatus struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Status *string `protobuf:"bytes,2,req,name=status" json:"status,omitempty"`

@ -11,6 +11,12 @@ message Request {
required string name = 1;
}
message ProgramInfo {
required string name = 1;
repeated string command = 2;
required string dir = 3;
}
message ProgramStatus {
required string name = 1;
required string status = 2;

Loading…
Cancel
Save