mmf

command
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This sample is a reference to demonstrate serving a golang matchmaking function using gRPC, and can be used as a starting point for your match function. This sample uses the 'soloduel' matching function to create 1v1 matches, using a first-in-first-out (FIFO) strategy.

A typical approach if you wish to write your mmf in golang would be to make a copy of the open-match.dev/open-match-ecosystem/v2/mmf/functions/soloduel directory, write your own matchmaking logic in the 'Run' function based on your game's requirements, rename the module it according to what it does, and then compile this main program using your function in place of soloduel.

A typical production deployment would put that compiled binary into a continer image to serve from a serverless platform like Cloud Run or kNative, or a kubernetes deployment with a service in front of it.

Directories

Path Synopsis
functions
soloduel
Package soloduel provides a sample match function that makes set up 1v1 matches using a first-in-first-out (FIFO) strategy.
Package soloduel provides a sample match function that makes set up 1v1 matches using a first-in-first-out (FIFO) strategy.
Package server contains golang implementations for common matchmaking function gRPC server functionality, like starting up the server, or parsing the chunked profile format sent by om-core.
Package server contains golang implementations for common matchmaking function gRPC server functionality, like starting up the server, or parsing the chunked profile format sent by om-core.

Jump to

Keyboard shortcuts

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