Documentation
¶
Overview ¶
Package example is a generated protocol buffer package.
It is generated from these files:
example.proto
It has these top-level messages:
Message
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleServer ¶
func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
Types ¶
type ExampleClient ¶
type ExampleClient interface {
Echo(ctx context.Context, opts ...grpc.CallOption) (Example_EchoClient, error)
}
func NewExampleClient ¶
func NewExampleClient(cc *grpc.ClientConn) ExampleClient
type ExampleServer ¶
type ExampleServer interface {
Echo(Example_EchoServer) error
}
type Example_EchoClient ¶
type Example_EchoServer ¶
type Message ¶
type Message struct {
Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.