Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
hello.proto
It has these top-level messages:
Packet Event Hello
Index ¶
- func RegisterGameServiceServer(s *grpc.Server, srv GameServiceServer)
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type Event
- type GameServiceClient
- type GameServiceServer
- type GameService_TunnelClient
- type GameService_TunnelServer
- type GreeterClient
- type GreeterServer
- type Hello
- type Hello_Req
- type Hello_Res
- type Packet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGameServiceServer ¶
func RegisterGameServiceServer(s *grpc.Server, srv GameServiceServer)
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type Event ¶
type Event struct {
Type int32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"`
}
func (*Event) Descriptor ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
type GameServiceClient ¶
type GameServiceClient interface {
Tunnel(ctx context.Context, opts ...grpc.CallOption) (GameService_TunnelClient, error)
}
func NewGameServiceClient ¶
func NewGameServiceClient(cc *grpc.ClientConn) GameServiceClient
type GameServiceServer ¶
type GameServiceServer interface {
Tunnel(GameService_TunnelServer) error
}
type GreeterClient ¶
type GreeterClient interface {
SayHello(ctx context.Context, in *Hello_Req, opts ...grpc.CallOption) (*Hello_Res, error)
}
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterServer ¶
type Hello ¶
type Hello struct { }
func (*Hello) Descriptor ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
type Hello_Req ¶
type Hello_Req struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Hello_Req) Descriptor ¶
func (*Hello_Req) ProtoMessage ¶
func (*Hello_Req) ProtoMessage()
type Hello_Res ¶
type Hello_Res struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Hello_Res) Descriptor ¶
func (*Hello_Res) GetMessage ¶
func (*Hello_Res) ProtoMessage ¶
func (*Hello_Res) ProtoMessage()
type Packet ¶
type Packet struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
func (*Packet) Descriptor ¶
func (*Packet) GetPayload ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.