Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_mlb_service_game_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGameServer ¶
func RegisterGameServer(s grpc.ServiceRegistrar, srv GameServer)
Types ¶
type GameClient ¶
type GameClient interface {
GetGame(ctx context.Context, in *GameRequest, opts ...grpc.CallOption) (*GameReply, error)
}
GameClient is the client API for Game 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 NewGameClient ¶
func NewGameClient(cc grpc.ClientConnInterface) GameClient
type GameReply ¶
type GameReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GameReply) Descriptor
deprecated
func (*GameReply) GetMessage ¶
func (*GameReply) ProtoMessage ¶
func (*GameReply) ProtoMessage()
func (*GameReply) ProtoReflect ¶
func (x *GameReply) ProtoReflect() protoreflect.Message
type GameRequest ¶
type GameRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GameRequest) Descriptor
deprecated
func (*GameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GameRequest.ProtoReflect.Descriptor instead.
func (*GameRequest) GetID ¶
func (x *GameRequest) GetID() string
func (*GameRequest) ProtoMessage ¶
func (*GameRequest) ProtoMessage()
func (*GameRequest) ProtoReflect ¶
func (x *GameRequest) ProtoReflect() protoreflect.Message
func (*GameRequest) Reset ¶
func (x *GameRequest) Reset()
func (*GameRequest) String ¶
func (x *GameRequest) String() string
type GameServer ¶
type GameServer interface { GetGame(context.Context, *GameRequest) (*GameReply, error) // contains filtered or unexported methods }
GameServer is the server API for Game service. All implementations must embed UnimplementedGameServer for forward compatibility
type GameService ¶
type GameService struct {
UnimplementedGameServer
}
func (*GameService) GetGame ¶
func (s *GameService) GetGame(ctx context.Context, req *GameRequest) (*GameReply, error)
type UnimplementedGameServer ¶
type UnimplementedGameServer struct { }
UnimplementedGameServer must be embedded to have forward compatible implementations.
func (UnimplementedGameServer) GetGame ¶
func (UnimplementedGameServer) GetGame(context.Context, *GameRequest) (*GameReply, error)
type UnsafeGameServer ¶
type UnsafeGameServer interface {
// contains filtered or unexported methods
}
UnsafeGameServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GameServer will result in compilation errors.
Click to show internal directories.
Click to hide internal directories.