go-matcher

command module
v0.0.5-timer Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 0 Imported by: 0

README

go-matcher

Go Report Card codecov CI GitHub release (latest SemVer)

Go-matcher is a game matcher implement in Go, which supports add game mode and match strategy easily.

  • GameMode: The identifier of each different game, used to define as enum.
  • MatchStrategy: The strategy to match players, used to define as interface.

Before writing code

bash ./setup_pre_commit.sh

FEATURE

  • API
    • HTTP
    • TCP
    • UDP
    • KCP
    • WebSocket
  • Service
    • match service
  • Swagger Doc
  • GameMode
    • GoatGame
  • MatchStrategy
    • Glicko2

PROBLEM

  • change match strategy dynamic according to config changes
  • lack of GameEnd and Ready services。

TODO

  • connectorRPC
  • tcp
  • udp
  • kcp
  • websocket
  • dynamic config
  • logger
  • tracer
  • opentelementry
  • repository stats
  • match queue stats
  • timer

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
http command
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
examples
add
Package add is an example to test hook that checks go files with tests.
Package add is an example to test hook that checks go files with tests.
race
Package race is an example to demonstrate race conditions.
Package race is an example to demonstrate race conditions.
internal
api
pto
rpc/rpcclient/connector
Package connector provides the functionality to send rpc requests to connector server.
Package connector provides the functionality to send rpc requests to connector server.
pkg
timer
Package timer defines the interface for timer.
Package timer defines the interface for timer.

Jump to

Keyboard shortcuts

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