Documentation ¶
Index ¶
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type GoodbyeReply
- func (*GoodbyeReply) Descriptor() ([]byte, []int)
- func (m *GoodbyeReply) GetMessage() string
- func (*GoodbyeReply) ProtoMessage()
- func (m *GoodbyeReply) Reset()
- func (m *GoodbyeReply) String() string
- func (m *GoodbyeReply) XXX_DiscardUnknown()
- func (m *GoodbyeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GoodbyeReply) XXX_Merge(src proto.Message)
- func (m *GoodbyeReply) XXX_Size() int
- func (m *GoodbyeReply) XXX_Unmarshal(b []byte) error
- type GoodbyeRequest
- func (*GoodbyeRequest) Descriptor() ([]byte, []int)
- func (m *GoodbyeRequest) GetName() string
- func (*GoodbyeRequest) ProtoMessage()
- func (m *GoodbyeRequest) Reset()
- func (m *GoodbyeRequest) String() string
- func (m *GoodbyeRequest) XXX_DiscardUnknown()
- func (m *GoodbyeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GoodbyeRequest) XXX_Merge(src proto.Message)
- func (m *GoodbyeRequest) XXX_Size() int
- func (m *GoodbyeRequest) XXX_Unmarshal(b []byte) error
- type GreeterClient
- type GreeterServer
- type HelloReply
- func (*HelloReply) Descriptor() ([]byte, []int)
- func (m *HelloReply) GetMessage() string
- func (*HelloReply) ProtoMessage()
- func (m *HelloReply) Reset()
- func (m *HelloReply) String() string
- func (m *HelloReply) XXX_DiscardUnknown()
- func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloReply) XXX_Merge(src proto.Message)
- func (m *HelloReply) XXX_Size() int
- func (m *HelloReply) XXX_Unmarshal(b []byte) error
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (m *HelloRequest) GetName() string
- func (*HelloRequest) ProtoMessage()
- func (m *HelloRequest) Reset()
- func (m *HelloRequest) String() string
- func (m *HelloRequest) XXX_DiscardUnknown()
- func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloRequest) XXX_Merge(src proto.Message)
- func (m *HelloRequest) XXX_Size() int
- func (m *HelloRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedGreeterServer
- func (*UnimplementedGreeterServer) SayGoodbye(ctx context.Context, req *GoodbyeRequest) (*GoodbyeReply, error)
- func (*UnimplementedGreeterServer) SayGoodbyeAgain(ctx context.Context, req *GoodbyeRequest) (*GoodbyeReply, error)
- func (*UnimplementedGreeterServer) SayHello(ctx context.Context, req *HelloRequest) (*HelloReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type GoodbyeReply ¶ added in v6.2.0
type GoodbyeReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the user's name.
func (*GoodbyeReply) Descriptor ¶ added in v6.2.0
func (*GoodbyeReply) Descriptor() ([]byte, []int)
func (*GoodbyeReply) GetMessage ¶ added in v6.2.0
func (m *GoodbyeReply) GetMessage() string
func (*GoodbyeReply) ProtoMessage ¶ added in v6.2.0
func (*GoodbyeReply) ProtoMessage()
func (*GoodbyeReply) Reset ¶ added in v6.2.0
func (m *GoodbyeReply) Reset()
func (*GoodbyeReply) String ¶ added in v6.2.0
func (m *GoodbyeReply) String() string
func (*GoodbyeReply) XXX_DiscardUnknown ¶ added in v6.2.0
func (m *GoodbyeReply) XXX_DiscardUnknown()
func (*GoodbyeReply) XXX_Marshal ¶ added in v6.2.0
func (m *GoodbyeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoodbyeReply) XXX_Merge ¶ added in v6.2.0
func (m *GoodbyeReply) XXX_Merge(src proto.Message)
func (*GoodbyeReply) XXX_Size ¶ added in v6.2.0
func (m *GoodbyeReply) XXX_Size() int
func (*GoodbyeReply) XXX_Unmarshal ¶ added in v6.2.0
func (m *GoodbyeReply) XXX_Unmarshal(b []byte) error
type GoodbyeRequest ¶ added in v6.2.0
type GoodbyeRequest 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:"-"` }
The request message containing the user's name.
func (*GoodbyeRequest) Descriptor ¶ added in v6.2.0
func (*GoodbyeRequest) Descriptor() ([]byte, []int)
func (*GoodbyeRequest) GetName ¶ added in v6.2.0
func (m *GoodbyeRequest) GetName() string
func (*GoodbyeRequest) ProtoMessage ¶ added in v6.2.0
func (*GoodbyeRequest) ProtoMessage()
func (*GoodbyeRequest) Reset ¶ added in v6.2.0
func (m *GoodbyeRequest) Reset()
func (*GoodbyeRequest) String ¶ added in v6.2.0
func (m *GoodbyeRequest) String() string
func (*GoodbyeRequest) XXX_DiscardUnknown ¶ added in v6.2.0
func (m *GoodbyeRequest) XXX_DiscardUnknown()
func (*GoodbyeRequest) XXX_Marshal ¶ added in v6.2.0
func (m *GoodbyeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoodbyeRequest) XXX_Merge ¶ added in v6.2.0
func (m *GoodbyeRequest) XXX_Merge(src proto.Message)
func (*GoodbyeRequest) XXX_Size ¶ added in v6.2.0
func (m *GoodbyeRequest) XXX_Size() int
func (*GoodbyeRequest) XXX_Unmarshal ¶ added in v6.2.0
func (m *GoodbyeRequest) XXX_Unmarshal(b []byte) error
type GreeterClient ¶
type GreeterClient interface { // Sends a greeting SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) SayGoodbye(ctx context.Context, in *GoodbyeRequest, opts ...grpc.CallOption) (*GoodbyeReply, error) SayGoodbyeAgain(ctx context.Context, in *GoodbyeRequest, opts ...grpc.CallOption) (*GoodbyeReply, error) }
GreeterClient is the client API for Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterServer ¶
type GreeterServer interface { // Sends a greeting SayHello(context.Context, *HelloRequest) (*HelloReply, error) SayGoodbye(context.Context, *GoodbyeRequest) (*GoodbyeReply, error) SayGoodbyeAgain(context.Context, *GoodbyeRequest) (*GoodbyeReply, error) }
GreeterServer is the server API for Greeter service.
type HelloReply ¶
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the greetings
func (*HelloReply) Descriptor ¶
func (*HelloReply) Descriptor() ([]byte, []int)
func (*HelloReply) GetMessage ¶
func (m *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) Reset ¶
func (m *HelloReply) Reset()
func (*HelloReply) String ¶
func (m *HelloReply) String() string
func (*HelloReply) XXX_DiscardUnknown ¶
func (m *HelloReply) XXX_DiscardUnknown()
func (*HelloReply) XXX_Marshal ¶
func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloReply) XXX_Merge ¶
func (m *HelloReply) XXX_Merge(src proto.Message)
func (*HelloReply) XXX_Size ¶
func (m *HelloReply) XXX_Size() int
func (*HelloReply) XXX_Unmarshal ¶
func (m *HelloReply) XXX_Unmarshal(b []byte) error
type HelloRequest ¶
type HelloRequest 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:"-"` }
The request message containing the user's name.
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
func (*HelloRequest) XXX_DiscardUnknown ¶
func (m *HelloRequest) XXX_DiscardUnknown()
func (*HelloRequest) XXX_Marshal ¶
func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloRequest) XXX_Merge ¶
func (m *HelloRequest) XXX_Merge(src proto.Message)
func (*HelloRequest) XXX_Size ¶
func (m *HelloRequest) XXX_Size() int
func (*HelloRequest) XXX_Unmarshal ¶
func (m *HelloRequest) XXX_Unmarshal(b []byte) error
type UnimplementedGreeterServer ¶ added in v6.2.0
type UnimplementedGreeterServer struct { }
UnimplementedGreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreeterServer) SayGoodbye ¶ added in v6.2.0
func (*UnimplementedGreeterServer) SayGoodbye(ctx context.Context, req *GoodbyeRequest) (*GoodbyeReply, error)
func (*UnimplementedGreeterServer) SayGoodbyeAgain ¶ added in v6.3.0
func (*UnimplementedGreeterServer) SayGoodbyeAgain(ctx context.Context, req *GoodbyeRequest) (*GoodbyeReply, error)
func (*UnimplementedGreeterServer) SayHello ¶ added in v6.2.0
func (*UnimplementedGreeterServer) SayHello(ctx context.Context, req *HelloRequest) (*HelloReply, error)
Click to show internal directories.
Click to hide internal directories.