Documentation ¶
Index ¶
- type Service
- func (s *Service) AcknowledgeBackfill(ctx context.Context, req *pb.AcknowledgeBackfillRequest) (*pb.Backfill, error)
- func (s *Service) Close()
- func (s *Service) CreateBackfill(ctx context.Context, req *pb.CreateBackfillRequest) (*pb.Backfill, error)
- func (s *Service) CreateTicket(ctx context.Context, req *pb.CreateTicketRequest) (*pb.Ticket, error)
- func (s *Service) DeleteBackfill(ctx context.Context, req *pb.DeleteBackfillRequest) (*empty.Empty, error)
- func (s *Service) DeleteTicket(ctx context.Context, req *pb.DeleteTicketRequest) (*empty.Empty, error)
- func (s *Service) GetBackfill(ctx context.Context, req *pb.GetBackfillRequest) (*pb.Backfill, error)
- func (s *Service) GetTicket(ctx context.Context, req *pb.GetTicketRequest) (*pb.Ticket, error)
- func (s *Service) UpdateBackfill(ctx context.Context, req *pb.UpdateBackfillRequest) (*pb.Backfill, error)
- func (s *Service) WatchAssignments(req *pb.WatchAssignmentsRequest, svr pb.FrontendService_WatchAssignmentsServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the FrontendService APIs
func NewService ¶
func NewService(ticketsManager tickets.Manager, backfillManager backfill.Manager, customlogicManager customlogic.FrontendManager, filterManager filter.Manager) *Service
NewService returns a new Service
func (*Service) AcknowledgeBackfill ¶
func (s *Service) AcknowledgeBackfill(ctx context.Context, req *pb.AcknowledgeBackfillRequest) (*pb.Backfill, error)
AcknowledgeBackfill is used to notify OpenMatch about GameServer connection info
func (*Service) CreateBackfill ¶
func (s *Service) CreateBackfill(ctx context.Context, req *pb.CreateBackfillRequest) (*pb.Backfill, error)
CreateBackfill creates a new Backfill object.
func (*Service) CreateTicket ¶
func (s *Service) CreateTicket(ctx context.Context, req *pb.CreateTicketRequest) (*pb.Ticket, error)
CreateTicket assigns an unique TicketId to the input Ticket and record it in state storage. A ticket is considered as ready for matchmaking once it is created.
- If a TicketId exists in a Ticket request, an auto-generated TicketId will override this field.
- The ticket is tested against Match Profiles for membership and is added to a stream for the relevant profile, if no profile is matched an error is returned.
func (*Service) DeleteBackfill ¶
func (s *Service) DeleteBackfill(ctx context.Context, req *pb.DeleteBackfillRequest) (*empty.Empty, error)
DeleteBackfill receives a backfill ID and deletes its resource.
func (*Service) DeleteTicket ¶
func (s *Service) DeleteTicket(ctx context.Context, req *pb.DeleteTicketRequest) (*empty.Empty, error)
DeleteTicket immediately stops Open Match from using the Ticket for matchmaking and removes the Ticket from state storage.
func (*Service) GetBackfill ¶
func (s *Service) GetBackfill(ctx context.Context, req *pb.GetBackfillRequest) (*pb.Backfill, error)
GetBackfill returns a backfill object by its ID.
func (*Service) UpdateBackfill ¶
func (s *Service) UpdateBackfill(ctx context.Context, req *pb.UpdateBackfillRequest) (*pb.Backfill, error)
UpdateBackfill updates search_fields and extensions for the backfill with the provided id.
func (*Service) WatchAssignments ¶
func (s *Service) WatchAssignments(req *pb.WatchAssignmentsRequest, svr pb.FrontendService_WatchAssignmentsServer) error
WatchAssignments stream back Assignment of the specified TicketId if it is updated.