123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: service.proto
- package passportpb
- import proto "github.com/gogo/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "github.com/gogo/protobuf/gogoproto"
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
- // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // 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.SupportPackageIsVersion4
- // PassportClient is the client API for Passport service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type PassportClient interface {
- // The UserInfo service responds to incoming requests which who want to get user info.
- // rpc GetUserInfo (UserInfoRequest) returns (UserInfoReply) {}
- SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
- }
- type passportClient struct {
- cc *grpc.ClientConn
- }
- func NewPassportClient(cc *grpc.ClientConn) PassportClient {
- return &passportClient{cc}
- }
- func (c *passportClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
- out := new(HelloReply)
- err := c.cc.Invoke(ctx, "/passportpb.Passport/SayHello", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // PassportServer is the server API for Passport service.
- type PassportServer interface {
- // The UserInfo service responds to incoming requests which who want to get user info.
- // rpc GetUserInfo (UserInfoRequest) returns (UserInfoReply) {}
- SayHello(context.Context, *HelloRequest) (*HelloReply, error)
- }
- func RegisterPassportServer(s *grpc.Server, srv PassportServer) {
- s.RegisterService(&_Passport_serviceDesc, srv)
- }
- func _Passport_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(HelloRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(PassportServer).SayHello(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/passportpb.Passport/SayHello",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(PassportServer).SayHello(ctx, req.(*HelloRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Passport_serviceDesc = grpc.ServiceDesc{
- ServiceName: "passportpb.Passport",
- HandlerType: (*PassportServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "SayHello",
- Handler: _Passport_SayHello_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "service.proto",
- }
- func init() { proto.RegisterFile("service.proto", fileDescriptor_service_2517343fe8a91299) }
- var fileDescriptor_service_2517343fe8a91299 = []byte{
- // 151 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x4e, 0x2d, 0x2a,
- 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0x2c, 0x2e, 0x2e,
- 0xc8, 0x2f, 0x2a, 0x29, 0x48, 0x92, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce,
- 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0x2b, 0x49, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c,
- 0x30, 0x0b, 0xa2, 0x55, 0x4a, 0x20, 0x23, 0x35, 0x27, 0x27, 0xbf, 0x3c, 0xbf, 0x28, 0x27, 0x05,
- 0x22, 0x62, 0xe4, 0xc5, 0xc5, 0x11, 0x00, 0x35, 0x4e, 0xc8, 0x8e, 0x8b, 0x23, 0x38, 0xb1, 0xd2,
- 0x03, 0xa4, 0x44, 0x48, 0x42, 0x0f, 0x61, 0x8b, 0x1e, 0x58, 0x28, 0x28, 0xb5, 0xb0, 0x34, 0xb5,
- 0xb8, 0x44, 0x4a, 0x0c, 0x8b, 0x4c, 0x41, 0x4e, 0xa5, 0x12, 0x83, 0x93, 0xc0, 0x8f, 0x87, 0x72,
- 0x8c, 0x51, 0x48, 0xce, 0x4b, 0x62, 0x03, 0x5b, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x44,
- 0xff, 0xa0, 0xf9, 0xc2, 0x00, 0x00, 0x00,
- }
|