Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type ByeReply
- func (*ByeReply) Descriptor() ([]byte, []int)
- func (m *ByeReply) GetMessage() string
- func (*ByeReply) ProtoMessage()
- func (m *ByeReply) Reset()
- func (m *ByeReply) String() string
- func (m *ByeReply) XXX_DiscardUnknown()
- func (m *ByeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ByeReply) XXX_Merge(src proto.Message)
- func (m *ByeReply) XXX_Size() int
- func (m *ByeReply) XXX_Unmarshal(b []byte) error
- type ByeRequest
- func (*ByeRequest) Descriptor() ([]byte, []int)
- func (m *ByeRequest) GetName() string
- func (*ByeRequest) ProtoMessage()
- func (m *ByeRequest) Reset()
- func (m *ByeRequest) String() string
- func (m *ByeRequest) XXX_DiscardUnknown()
- func (m *ByeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ByeRequest) XXX_Merge(src proto.Message)
- func (m *ByeRequest) XXX_Size() int
- func (m *ByeRequest) 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
Constants ¶
View Source
const ( Greeter_SayHello = "/helloworld.Greeter/SayHello" Greeter_SayBye = "/helloworld.Greeter/SayBye" )
Variables ¶
View Source
var ( FullMethods = []string{ Greeter_SayHello, Greeter_SayBye, } )
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type ByeReply ¶
type ByeReply 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 (*ByeReply) Descriptor ¶
func (*ByeReply) GetMessage ¶
func (*ByeReply) ProtoMessage ¶
func (*ByeReply) ProtoMessage()
func (*ByeReply) XXX_DiscardUnknown ¶
func (m *ByeReply) XXX_DiscardUnknown()
func (*ByeReply) XXX_Marshal ¶
func (*ByeReply) XXX_Unmarshal ¶
type ByeRequest ¶
type ByeRequest 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 (*ByeRequest) Descriptor ¶
func (*ByeRequest) Descriptor() ([]byte, []int)
func (*ByeRequest) GetName ¶
func (m *ByeRequest) GetName() string
func (*ByeRequest) ProtoMessage ¶
func (*ByeRequest) ProtoMessage()
func (*ByeRequest) Reset ¶
func (m *ByeRequest) Reset()
func (*ByeRequest) String ¶
func (m *ByeRequest) String() string
func (*ByeRequest) XXX_DiscardUnknown ¶
func (m *ByeRequest) XXX_DiscardUnknown()
func (*ByeRequest) XXX_Marshal ¶
func (m *ByeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ByeRequest) XXX_Merge ¶
func (m *ByeRequest) XXX_Merge(src proto.Message)
func (*ByeRequest) XXX_Size ¶
func (m *ByeRequest) XXX_Size() int
func (*ByeRequest) XXX_Unmarshal ¶
func (m *ByeRequest) XXX_Unmarshal(b []byte) error
type GreeterClient ¶
type GreeterClient interface { // Sends a hello greeting SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) // Sends a bye greeting SayBye(ctx context.Context, in *ByeRequest, opts ...grpc.CallOption) (*ByeReply, 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 hello greeting SayHello(context.Context, *HelloRequest) (*HelloReply, error) // Sends a bye greeting SayBye(context.Context, *ByeRequest) (*ByeReply, 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
Click to show internal directories.
Click to hide internal directories.