Documentation ¶
Index ¶
- Variables
- func RegisterGreeterServiceServer(s *grpc.Server, srv GreeterServiceServer)
- type GreeterServiceClient
- type GreeterServiceServer
- type SayHelloReq
- func (*SayHelloReq) Descriptor() ([]byte, []int)
- func (m *SayHelloReq) GetName() string
- func (m *SayHelloReq) Marshal() (dAtA []byte, err error)
- func (m *SayHelloReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SayHelloReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayHelloReq) ProtoMessage()
- func (m *SayHelloReq) Reset()
- func (m *SayHelloReq) Size() (n int)
- func (m *SayHelloReq) String() string
- func (m *SayHelloReq) Unmarshal(dAtA []byte) error
- func (m *SayHelloReq) XXX_DiscardUnknown()
- func (m *SayHelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayHelloReq) XXX_Merge(src proto.Message)
- func (m *SayHelloReq) XXX_Size() int
- func (m *SayHelloReq) XXX_Unmarshal(b []byte) error
- type SayHelloRsp
- func (*SayHelloRsp) Descriptor() ([]byte, []int)
- func (m *SayHelloRsp) GetMsg() string
- func (m *SayHelloRsp) Marshal() (dAtA []byte, err error)
- func (m *SayHelloRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *SayHelloRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayHelloRsp) ProtoMessage()
- func (m *SayHelloRsp) Reset()
- func (m *SayHelloRsp) Size() (n int)
- func (m *SayHelloRsp) String() string
- func (m *SayHelloRsp) Unmarshal(dAtA []byte) error
- func (m *SayHelloRsp) XXX_DiscardUnknown()
- func (m *SayHelloRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayHelloRsp) XXX_Merge(src proto.Message)
- func (m *SayHelloRsp) XXX_Size() int
- func (m *SayHelloRsp) XXX_Unmarshal(b []byte) error
- type UnimplementedGreeterServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGreeterService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGreeterService = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGreeterService = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
ServiceName = "com.app.greeter.v1"
)
Functions ¶
func RegisterGreeterServiceServer ¶
func RegisterGreeterServiceServer(s *grpc.Server, srv GreeterServiceServer)
Types ¶
type GreeterServiceClient ¶
type GreeterServiceClient interface {
SayHello(ctx context.Context, in *SayHelloReq, opts ...grpc.CallOption) (*SayHelloRsp, error)
}
GreeterServiceClient is the client API for GreeterService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreeterServiceClient ¶
func NewGreeterServiceClient(cc *grpc.ClientConn) GreeterServiceClient
func NewGreeterServiceClientByDoom ¶
func NewGreeterServiceClientByDoom() (client GreeterServiceClient, err error)
type GreeterServiceServer ¶
type GreeterServiceServer interface {
SayHello(context.Context, *SayHelloReq) (*SayHelloRsp, error)
}
GreeterServiceServer is the server API for GreeterService service.
type SayHelloReq ¶
type SayHelloReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayHelloReq) Descriptor ¶
func (*SayHelloReq) Descriptor() ([]byte, []int)
func (*SayHelloReq) GetName ¶
func (m *SayHelloReq) GetName() string
func (*SayHelloReq) Marshal ¶
func (m *SayHelloReq) Marshal() (dAtA []byte, err error)
func (*SayHelloReq) MarshalToSizedBuffer ¶
func (m *SayHelloReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SayHelloReq) ProtoMessage ¶
func (*SayHelloReq) ProtoMessage()
func (*SayHelloReq) Reset ¶
func (m *SayHelloReq) Reset()
func (*SayHelloReq) Size ¶
func (m *SayHelloReq) Size() (n int)
func (*SayHelloReq) String ¶
func (m *SayHelloReq) String() string
func (*SayHelloReq) Unmarshal ¶
func (m *SayHelloReq) Unmarshal(dAtA []byte) error
func (*SayHelloReq) XXX_DiscardUnknown ¶
func (m *SayHelloReq) XXX_DiscardUnknown()
func (*SayHelloReq) XXX_Marshal ¶
func (m *SayHelloReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayHelloReq) XXX_Merge ¶
func (m *SayHelloReq) XXX_Merge(src proto.Message)
func (*SayHelloReq) XXX_Size ¶
func (m *SayHelloReq) XXX_Size() int
func (*SayHelloReq) XXX_Unmarshal ¶
func (m *SayHelloReq) XXX_Unmarshal(b []byte) error
type SayHelloRsp ¶
type SayHelloRsp struct { Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayHelloRsp) Descriptor ¶
func (*SayHelloRsp) Descriptor() ([]byte, []int)
func (*SayHelloRsp) GetMsg ¶
func (m *SayHelloRsp) GetMsg() string
func (*SayHelloRsp) Marshal ¶
func (m *SayHelloRsp) Marshal() (dAtA []byte, err error)
func (*SayHelloRsp) MarshalToSizedBuffer ¶
func (m *SayHelloRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SayHelloRsp) ProtoMessage ¶
func (*SayHelloRsp) ProtoMessage()
func (*SayHelloRsp) Reset ¶
func (m *SayHelloRsp) Reset()
func (*SayHelloRsp) Size ¶
func (m *SayHelloRsp) Size() (n int)
func (*SayHelloRsp) String ¶
func (m *SayHelloRsp) String() string
func (*SayHelloRsp) Unmarshal ¶
func (m *SayHelloRsp) Unmarshal(dAtA []byte) error
func (*SayHelloRsp) XXX_DiscardUnknown ¶
func (m *SayHelloRsp) XXX_DiscardUnknown()
func (*SayHelloRsp) XXX_Marshal ¶
func (m *SayHelloRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SayHelloRsp) XXX_Merge ¶
func (m *SayHelloRsp) XXX_Merge(src proto.Message)
func (*SayHelloRsp) XXX_Size ¶
func (m *SayHelloRsp) XXX_Size() int
func (*SayHelloRsp) XXX_Unmarshal ¶
func (m *SayHelloRsp) XXX_Unmarshal(b []byte) error
type UnimplementedGreeterServiceServer ¶
type UnimplementedGreeterServiceServer struct { }
UnimplementedGreeterServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreeterServiceServer) SayHello ¶
func (*UnimplementedGreeterServiceServer) SayHello(ctx context.Context, req *SayHelloReq) (*SayHelloRsp, error)
Click to show internal directories.
Click to hide internal directories.