pb

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingPong_Play_FullMethodName = "/pb.PingPong/Play"
)

Variables

View Source
var File_pingpong_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Ball.ProtoReflect.Descriptor instead.

func (*Ball) GetPlayer

func (x *Ball) GetPlayer() string

func (*Ball) GetProperties

func (x *Ball) GetProperties() []*Ball_Property

func (*Ball) GetRaw

func (x *Ball) GetRaw() []byte

func (*Ball) ProtoMessage

func (*Ball) ProtoMessage()

func (*Ball) ProtoReflect

func (x *Ball) ProtoReflect() protoreflect.Message

func (*Ball) Reset

func (x *Ball) Reset()

func (*Ball) String

func (x *Ball) String() string

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

type PingPongServer interface {
	Play(context.Context, *Ball) (*Ball, error)
}

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.

func (UnimplementedPingPongServer) Play

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL