代码拉取完成,页面将自动刷新
// 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",
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。