提交 4d81560d 作者: Brian Tiger Chow

fix(net/service/pb) rename proto package -> service_pb

上级 f620f87c
PB = $(wildcard *.proto)
GO = $(PB:.proto=.pb.go)
all: request.pb.go all: $(GO)
request.pb.go: request.proto %.pb.go: %.proto
protoc --gogo_out=. --proto_path=../../../../../:/usr/local/opt/protobuf/include:. $< protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $<
clean: clean:
rm request.pb.go rm -f *.pb.go
rm -f *.go
// Code generated by protoc-gen-gogo. // Code generated by protoc-gen-gogo.
// source: request.proto // source: service.proto
// DO NOT EDIT! // DO NOT EDIT!
/* /*
Package service is a generated protocol buffer package. Package service_pb is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
request.proto service.proto
It has these top-level messages: It has these top-level messages:
PBRequest PBRequest
*/ */
package service package service_pb
import proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto" import proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
import json "encoding/json"
import math "math" import math "math"
// Reference proto, json, and math imports to suppress error if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal var _ = proto.Marshal
var _ = &json.SyntaxError{}
var _ = math.Inf var _ = math.Inf
type PBRequest struct { type PBRequest struct {
......
package service; package service.pb;
message PBRequest { message PBRequest {
required bytes Data = 1; required bytes Data = 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论