frontend

package
v0.0.0-...-c39517e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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) Close

func (s *Service) Close()

Close shuts down database connections

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) GetTicket

func (s *Service) GetTicket(ctx context.Context, req *pb.GetTicketRequest) (*pb.Ticket, error)

GetTicket get the Ticket associated with the specified TicketId.

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

WatchAssignments stream back Assignment of the specified TicketId if it is updated.

Jump to

Keyboard shortcuts

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