Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPingPongServer(s grpc.ServiceRegistrar, srv PingPongServer)
- type Ball
- type Ball_Property
- func (*Ball_Property) Descriptor() ([]byte, []int)deprecated
- func (x *Ball_Property) GetKey() string
- func (x *Ball_Property) GetValue() string
- func (*Ball_Property) ProtoMessage()
- func (x *Ball_Property) ProtoReflect() protoreflect.Message
- func (x *Ball_Property) Reset()
- func (x *Ball_Property) String() string
- type PingPongClient
- type PingPongServer
- type UnimplementedPingPongServer
- type UnsafePingPongServer
Constants ¶
const (
PingPong_Play_FullMethodName = "/pb.PingPong/Play"
)
Variables ¶
var File_pingpong_proto protoreflect.FileDescriptor
var PingPong_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.PingPong", HandlerType: (*PingPongServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Play", Handler: _PingPong_Play_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pingpong.proto", }
PingPong_ServiceDesc is the grpc.ServiceDesc for PingPong service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPingPongServer ¶
func RegisterPingPongServer(s grpc.ServiceRegistrar, srv PingPongServer)
Types ¶
type Ball ¶
type Ball struct {
Player string `protobuf:"bytes,1,opt,name=Player,proto3" json:"Player,omitempty"`
Properties []*Ball_Property `protobuf:"bytes,2,rep,name=Properties,proto3" json:"Properties,omitempty"`
Raw []byte `protobuf:"bytes,3,opt,name=Raw,proto3" json:"Raw,omitempty"`
// contains filtered or unexported fields
}
func (*Ball) Descriptor
deprecated
func (*Ball) GetProperties ¶
func (x *Ball) GetProperties() []*Ball_Property
func (*Ball) ProtoMessage ¶
func (*Ball) ProtoMessage()
func (*Ball) ProtoReflect ¶
func (x *Ball) ProtoReflect() protoreflect.Message
type Ball_Property ¶
type Ball_Property struct {
Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
// contains filtered or unexported fields
}
func (*Ball_Property) Descriptor
deprecated
func (*Ball_Property) Descriptor() ([]byte, []int)
Deprecated: Use Ball_Property.ProtoReflect.Descriptor instead.
func (*Ball_Property) GetKey ¶
func (x *Ball_Property) GetKey() string
func (*Ball_Property) GetValue ¶
func (x *Ball_Property) GetValue() string
func (*Ball_Property) ProtoMessage ¶
func (*Ball_Property) ProtoMessage()
func (*Ball_Property) ProtoReflect ¶
func (x *Ball_Property) ProtoReflect() protoreflect.Message
func (*Ball_Property) Reset ¶
func (x *Ball_Property) Reset()
func (*Ball_Property) String ¶
func (x *Ball_Property) String() string
type PingPongClient ¶
type PingPongClient interface {
Play(ctx context.Context, in *Ball, opts ...grpc.CallOption) (*Ball, error)
}
PingPongClient is the client API for PingPong service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPingPongClient ¶
func NewPingPongClient(cc grpc.ClientConnInterface) PingPongClient
type PingPongServer ¶
PingPongServer is the server API for PingPong service. All implementations should embed UnimplementedPingPongServer for forward compatibility
type UnimplementedPingPongServer ¶
type UnimplementedPingPongServer struct {
}
UnimplementedPingPongServer should be embedded to have forward compatible implementations.
type UnsafePingPongServer ¶
type UnsafePingPongServer interface {
// contains filtered or unexported methods
}
UnsafePingPongServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingPongServer will result in compilation errors.