2 Star 0 Fork 0

岑溪市肆悠龗悟有限责任公司/practice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
echo.pb.go 3.88 KB
一键复制 编辑 原始数据 按行查看 历史
Tinkler 提交于 2020-02-18 00:21 +08:00 . add mulver
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: echo.proto
package echo
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("echo.proto", fileDescriptor_08134aea513e0001) }
var fileDescriptor_08134aea513e0001 = []byte{
// 89 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4d, 0xce, 0xc8,
0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0xa5, 0x78, 0xf2, 0xd3, 0xd2, 0x8a,
0x53, 0x4b, 0x20, 0x62, 0x46, 0x86, 0x5c, 0x5c, 0xae, 0xc9, 0x19, 0xf9, 0xc1, 0xa9, 0x45, 0x65,
0xa9, 0x45, 0x42, 0xca, 0x5c, 0xcc, 0x6e, 0x39, 0x95, 0x42, 0x3c, 0x7a, 0x60, 0x5d, 0xfe, 0x60,
0x85, 0x52, 0x28, 0x3c, 0x25, 0x86, 0x24, 0x36, 0xb0, 0x4e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff,
0xff, 0x61, 0x88, 0x8b, 0xe4, 0x5b, 0x00, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// EchoServerClient is the client API for EchoServer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type EchoServerClient interface {
Fly(ctx context.Context, in *Offset, opts ...grpc.CallOption) (*Offset, error)
}
type echoServerClient struct {
cc grpc.ClientConnInterface
}
func NewEchoServerClient(cc grpc.ClientConnInterface) EchoServerClient {
return &echoServerClient{cc}
}
func (c *echoServerClient) Fly(ctx context.Context, in *Offset, opts ...grpc.CallOption) (*Offset, error) {
out := new(Offset)
err := c.cc.Invoke(ctx, "/echo.EchoServer/Fly", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// EchoServerServer is the server API for EchoServer service.
type EchoServerServer interface {
Fly(context.Context, *Offset) (*Offset, error)
}
// UnimplementedEchoServerServer can be embedded to have forward compatible implementations.
type UnimplementedEchoServerServer struct {
}
func (*UnimplementedEchoServerServer) Fly(ctx context.Context, req *Offset) (*Offset, error) {
return nil, status.Errorf(codes.Unimplemented, "method Fly not implemented")
}
func RegisterEchoServerServer(s *grpc.Server, srv EchoServerServer) {
s.RegisterService(&_EchoServer_serviceDesc, srv)
}
func _EchoServer_Fly_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Offset)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EchoServerServer).Fly(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/echo.EchoServer/Fly",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EchoServerServer).Fly(ctx, req.(*Offset))
}
return interceptor(ctx, in, info, handler)
}
var _EchoServer_serviceDesc = grpc.ServiceDesc{
ServiceName: "echo.EchoServer",
HandlerType: (*EchoServerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Fly",
Handler: _EchoServer_Fly_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "echo.proto",
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yunind/practice.git
git@gitee.com:yunind/practice.git
yunind
practice
practice
1815555761d1

搜索帮助