Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miltoncandelero/nakama-snippets

Snippets for nakama go server runtime
https://github.com/miltoncandelero/nakama-snippets

Last synced: about 1 month ago
JSON representation

Snippets for nakama go server runtime

Awesome Lists containing this project

README

        

# Nakama Snippets for GO

Just a bunch of snippets to write [Nakama](https://heroiclabs.com/docs/nakama/) functions

## List of snippets
### Context
- `ctxuserid`, `cuserid`: User ID from Context
- `ctxusername`, `cusername`: Username from Context
- `ctxvalue`, `cvalue`: Get value form Context (All of 'em)
### RPC
- `rpc`: Remote Procedure Call Function
### Match
#### Lifetime
- `matchcreator`, `mcreator`: Match Creator Function
- `matchinit`, `minit`: Match Init Method
- `matchjoin`, `mjoin`: Match Join Method
- `matchjoinattempt`, `mjoinattempt`: Match Join Attempt Method
- `matchleave`, `mleave`: Match Leave Method
- `matchloop`, `mloop`: Match Loop Method
- `matchsignal`, `msignal`: Match Signal Method
- `matchterminate`, `mterminate`: Match Terminate Method
#### Match Tools
- `matchbroadcast`, `mbroadcast`: Match Broadcast Message
- `matchkick`, `mkick`: Match Kick
- `matchlabelupdate`, `mlabelupdate`: Match Label Update
### Hooks
- `beforehook`, `bhook`: Before Hooks Handler(All of 'em. Start typing to find the one you want)
- `afterhook`, `ahook`: After Hooks Handler(All of 'em. Start typing to find the one you want)
- `eventhook`, `ehook`: Event Hook Handler
- `matchmakerhook`, `mmhook`: Matchmaker Hook Handler
- `tournamenthook`, `thook`: Tournament Hook Handler
- `leaderboardhook`, `lhook`: Leaderboard Hook Handler
- `purchasehook`, `phook`: Purchase / Subscription Hook Handler