Documentation ¶
Overview ¶
Package helloworld is a generated protocol buffer package.
It is generated from these files:
helloworld.proto
It has these top-level messages:
SvcRequest SvcResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
func RegisterWorldServer ¶
func RegisterWorldServer(s *grpc.Server, srv WorldServer)
Types ¶
type HelloClient ¶
type HelloClient interface { Greeting(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (*SvcResponse, error) StreamGreeting(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (Hello_StreamGreetingClient, error) }
func NewHelloClient ¶
func NewHelloClient(cc *grpc.ClientConn) HelloClient
type HelloServer ¶
type HelloServer interface { Greeting(context.Context, *SvcRequest) (*SvcResponse, error) StreamGreeting(*SvcRequest, Hello_StreamGreetingServer) error }
type Hello_StreamGreetingClient ¶
type Hello_StreamGreetingClient interface { Recv() (*SvcResponse, error) grpc.ClientStream }
type Hello_StreamGreetingServer ¶
type Hello_StreamGreetingServer interface { Send(*SvcResponse) error grpc.ServerStream }
type SvcRequest ¶
type SvcRequest struct { }
func (*SvcRequest) Descriptor ¶
func (*SvcRequest) Descriptor() ([]byte, []int)
func (*SvcRequest) ProtoMessage ¶
func (*SvcRequest) ProtoMessage()
func (*SvcRequest) Reset ¶
func (m *SvcRequest) Reset()
func (*SvcRequest) String ¶
func (m *SvcRequest) String() string
type SvcResponse ¶
type SvcResponse struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*SvcResponse) Descriptor ¶
func (*SvcResponse) Descriptor() ([]byte, []int)
func (*SvcResponse) GetMessage ¶
func (m *SvcResponse) GetMessage() string
func (*SvcResponse) ProtoMessage ¶
func (*SvcResponse) ProtoMessage()
func (*SvcResponse) Reset ¶
func (m *SvcResponse) Reset()
func (*SvcResponse) String ¶
func (m *SvcResponse) String() string
type WorldClient ¶
type WorldClient interface {
Greeting(ctx context.Context, in *SvcRequest, opts ...grpc.CallOption) (*SvcResponse, error)
}
func NewWorldClient ¶
func NewWorldClient(cc *grpc.ClientConn) WorldClient
type WorldServer ¶
type WorldServer interface {
Greeting(context.Context, *SvcRequest) (*SvcResponse, error)
}
Click to show internal directories.
Click to hide internal directories.