parent
29d17f55c3
commit
96883fc81e
@ -0,0 +1,64 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: gosuv.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package pbrpc is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
gosuv.proto
|
||||
|
||||
It has these top-level messages:
|
||||
CtrlRequest
|
||||
CtrlResponse
|
||||
*/
|
||||
package pbrpc
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
type CtrlRequest struct {
|
||||
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
|
||||
Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CtrlRequest) Reset() { *m = CtrlRequest{} }
|
||||
func (m *CtrlRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CtrlRequest) ProtoMessage() {}
|
||||
|
||||
func (m *CtrlRequest) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
return *m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CtrlRequest) GetKey() string {
|
||||
if m != nil && m.Key != nil {
|
||||
return *m.Key
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CtrlResponse struct {
|
||||
Value *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CtrlResponse) Reset() { *m = CtrlResponse{} }
|
||||
func (m *CtrlResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CtrlResponse) ProtoMessage() {}
|
||||
|
||||
func (m *CtrlResponse) GetValue() string {
|
||||
if m != nil && m.Value != nil {
|
||||
return *m.Value
|
||||
}
|
||||
return ""
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package pbrpc;
|
||||
|
||||
message CtrlRequest {
|
||||
required string name = 1;
|
||||
required string key = 2; // not actually required/guaranteed to be UTF-8
|
||||
}
|
||||
|
||||
message CtrlResponse {
|
||||
optional string value = 1;
|
||||
}
|
||||
|
||||
service GoSUV{
|
||||
rpc Control(CtrlRequest) returns (CtrlResponse) {
|
||||
};
|
||||
}
|
Loading…
Reference in new issue