Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSynchronizerServer(s grpc.ServiceRegistrar, srv SynchronizerServer)
- type BackfillInternal
- func (*BackfillInternal) Descriptor() ([]byte, []int)deprecated
- func (x *BackfillInternal) GetBackfill() *pb.Backfill
- func (x *BackfillInternal) GetTicketIds() []string
- func (*BackfillInternal) ProtoMessage()
- func (x *BackfillInternal) ProtoReflect() protoreflect.Message
- func (x *BackfillInternal) Reset()
- func (x *BackfillInternal) String() string
- type SynchronizeRequest
- func (*SynchronizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SynchronizeRequest) GetProposal() *pb.Match
- func (*SynchronizeRequest) ProtoMessage()
- func (x *SynchronizeRequest) ProtoReflect() protoreflect.Message
- func (x *SynchronizeRequest) Reset()
- func (x *SynchronizeRequest) String() string
- type SynchronizeResponse
- func (*SynchronizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SynchronizeResponse) GetCancelMmfs() bool
- func (x *SynchronizeResponse) GetMatchId() string
- func (x *SynchronizeResponse) GetStartMmfs() bool
- func (*SynchronizeResponse) ProtoMessage()
- func (x *SynchronizeResponse) ProtoReflect() protoreflect.Message
- func (x *SynchronizeResponse) Reset()
- func (x *SynchronizeResponse) String() string
- type SynchronizerClient
- type SynchronizerServer
- type Synchronizer_SynchronizeClient
- type Synchronizer_SynchronizeServer
- type UnimplementedSynchronizerServer
- type UnsafeSynchronizerServer
Constants ¶
const (
Synchronizer_Synchronize_FullMethodName = "/openmatch.internal.Synchronizer/Synchronize"
)
Variables ¶
var File_internal_api_messages_proto protoreflect.FileDescriptor
var File_internal_api_synchronizer_proto protoreflect.FileDescriptor
var Synchronizer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "openmatch.internal.Synchronizer", HandlerType: (*SynchronizerServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Synchronize", Handler: _Synchronizer_Synchronize_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "internal/api/synchronizer.proto", }
Synchronizer_ServiceDesc is the grpc.ServiceDesc for Synchronizer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSynchronizerServer ¶
func RegisterSynchronizerServer(s grpc.ServiceRegistrar, srv SynchronizerServer)
Types ¶
type BackfillInternal ¶
type BackfillInternal struct {
// Represents a backfill entity which is used to fill partially full matches
Backfill *pb.Backfill `protobuf:"bytes,1,opt,name=backfill,proto3" json:"backfill,omitempty"`
// List of ticket IDs associated with a current backfill
TicketIds []string `protobuf:"bytes,2,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"`
// contains filtered or unexported fields
}
func (*BackfillInternal) Descriptor
deprecated
func (*BackfillInternal) Descriptor() ([]byte, []int)
Deprecated: Use BackfillInternal.ProtoReflect.Descriptor instead.
func (*BackfillInternal) GetBackfill ¶
func (x *BackfillInternal) GetBackfill() *pb.Backfill
func (*BackfillInternal) GetTicketIds ¶
func (x *BackfillInternal) GetTicketIds() []string
func (*BackfillInternal) ProtoMessage ¶
func (*BackfillInternal) ProtoMessage()
func (*BackfillInternal) ProtoReflect ¶
func (x *BackfillInternal) ProtoReflect() protoreflect.Message
func (*BackfillInternal) Reset ¶
func (x *BackfillInternal) Reset()
func (*BackfillInternal) String ¶
func (x *BackfillInternal) String() string
type SynchronizeRequest ¶
type SynchronizeRequest struct {
// A match returned by an mmf.
Proposal *pb.Match `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
// contains filtered or unexported fields
}
func (*SynchronizeRequest) Descriptor
deprecated
func (*SynchronizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SynchronizeRequest.ProtoReflect.Descriptor instead.
func (*SynchronizeRequest) GetProposal ¶
func (x *SynchronizeRequest) GetProposal() *pb.Match
func (*SynchronizeRequest) ProtoMessage ¶
func (*SynchronizeRequest) ProtoMessage()
func (*SynchronizeRequest) ProtoReflect ¶
func (x *SynchronizeRequest) ProtoReflect() protoreflect.Message
func (*SynchronizeRequest) Reset ¶
func (x *SynchronizeRequest) Reset()
func (*SynchronizeRequest) String ¶
func (x *SynchronizeRequest) String() string
type SynchronizeResponse ¶
type SynchronizeResponse struct {
// Instructs the backend call that it can start running the mmfs.
StartMmfs bool `protobuf:"varint,1,opt,name=start_mmfs,json=startMmfs,proto3" json:"start_mmfs,omitempty"`
// Instructs the backend call that it should cancel any RPC calls to the mmfs,
// not send any more matches, and close the send stream.
CancelMmfs bool `protobuf:"varint,2,opt,name=cancel_mmfs,json=cancelMmfs,proto3" json:"cancel_mmfs,omitempty"`
// A match ID returned by the evaluator and should be returned to the FetchMatches
// caller.
MatchId string `protobuf:"bytes,4,opt,name=match_id,json=matchId,proto3" json:"match_id,omitempty"`
// contains filtered or unexported fields
}
func (*SynchronizeResponse) Descriptor
deprecated
func (*SynchronizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SynchronizeResponse.ProtoReflect.Descriptor instead.
func (*SynchronizeResponse) GetCancelMmfs ¶
func (x *SynchronizeResponse) GetCancelMmfs() bool
func (*SynchronizeResponse) GetMatchId ¶
func (x *SynchronizeResponse) GetMatchId() string
func (*SynchronizeResponse) GetStartMmfs ¶
func (x *SynchronizeResponse) GetStartMmfs() bool
func (*SynchronizeResponse) ProtoMessage ¶
func (*SynchronizeResponse) ProtoMessage()
func (*SynchronizeResponse) ProtoReflect ¶
func (x *SynchronizeResponse) ProtoReflect() protoreflect.Message
func (*SynchronizeResponse) Reset ¶
func (x *SynchronizeResponse) Reset()
func (*SynchronizeResponse) String ¶
func (x *SynchronizeResponse) String() string
type SynchronizerClient ¶
type SynchronizerClient interface {
// Synchronize signals the caller when it is safe to run mmfs, collects the
// mmfs' proposals, and returns the evaluated matches.
Synchronize(ctx context.Context, opts ...grpc.CallOption) (Synchronizer_SynchronizeClient, error)
}
SynchronizerClient is the client API for Synchronizer 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 NewSynchronizerClient ¶
func NewSynchronizerClient(cc grpc.ClientConnInterface) SynchronizerClient
type SynchronizerServer ¶
type SynchronizerServer interface {
// Synchronize signals the caller when it is safe to run mmfs, collects the
// mmfs' proposals, and returns the evaluated matches.
Synchronize(Synchronizer_SynchronizeServer) error
}
SynchronizerServer is the server API for Synchronizer service. All implementations should embed UnimplementedSynchronizerServer for forward compatibility
type Synchronizer_SynchronizeClient ¶
type Synchronizer_SynchronizeClient interface {
Send(*SynchronizeRequest) error
Recv() (*SynchronizeResponse, error)
grpc.ClientStream
}
type Synchronizer_SynchronizeServer ¶
type Synchronizer_SynchronizeServer interface {
Send(*SynchronizeResponse) error
Recv() (*SynchronizeRequest, error)
grpc.ServerStream
}
type UnimplementedSynchronizerServer ¶
type UnimplementedSynchronizerServer struct {
}
UnimplementedSynchronizerServer should be embedded to have forward compatible implementations.
func (UnimplementedSynchronizerServer) Synchronize ¶
func (UnimplementedSynchronizerServer) Synchronize(Synchronizer_SynchronizeServer) error
type UnsafeSynchronizerServer ¶
type UnsafeSynchronizerServer interface {
// contains filtered or unexported methods
}
UnsafeSynchronizerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SynchronizerServer will result in compilation errors.