First
This commit is contained in:
57
template/proto/example/example.pb.go
Normal file
57
template/proto/example/example.pb.go
Normal file
@@ -0,0 +1,57 @@
|
||||
// Code generated by protoc-gen-gogo.
|
||||
// source: asim/go-micro/template/proto/example/example.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package go_micro_service_template_example is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
asim/go-micro/template/proto/example/example.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Request
|
||||
Response
|
||||
*/
|
||||
package go_micro_service_template_example
|
||||
|
||||
import proto "code.google.com/p/gogoprotobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = math.Inf
|
||||
|
||||
type Request struct {
|
||||
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Request) Reset() { *m = Request{} }
|
||||
func (m *Request) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request) ProtoMessage() {}
|
||||
|
||||
func (m *Request) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
return *m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Msg *string `protobuf:"bytes,1,req,name=msg" json:"msg,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Response) Reset() { *m = Response{} }
|
||||
func (m *Response) String() string { return proto.CompactTextString(m) }
|
||||
func (*Response) ProtoMessage() {}
|
||||
|
||||
func (m *Response) GetMsg() string {
|
||||
if m != nil && m.Msg != nil {
|
||||
return *m.Msg
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
}
|
9
template/proto/example/example.proto
Normal file
9
template/proto/example/example.proto
Normal file
@@ -0,0 +1,9 @@
|
||||
package go.micro.service.template.example;
|
||||
|
||||
message Request {
|
||||
required string name = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
required string msg = 1;
|
||||
}
|
Reference in New Issue
Block a user