service

package
v0.0.0-...-de618e6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

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) Descriptor() ([]byte, []int)

Deprecated: Use GameReply.ProtoReflect.Descriptor instead.

func (*GameReply) GetMessage

func (x *GameReply) GetMessage() string

func (*GameReply) ProtoMessage

func (*GameReply) ProtoMessage()

func (*GameReply) ProtoReflect

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

func (*GameReply) Reset

func (x *GameReply) Reset()

func (*GameReply) String

func (x *GameReply) String() string

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

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.

Jump to

Keyboard shortcuts

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