ipb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Synchronizer_Synchronize_FullMethodName = "/openmatch.internal.Synchronizer/Synchronize"
)

Variables

View Source
var File_internal_api_messages_proto protoreflect.FileDescriptor
View Source
var File_internal_api_synchronizer_proto protoreflect.FileDescriptor
View Source
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.

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

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.

Jump to

Keyboard shortcuts

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