Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/miltoncandelero/nakama-snippets
- Owner: miltoncandelero
- Created: 2023-10-02T20:33:17.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-04T00:53:15.000Z (about 1 year ago)
- Last Synced: 2024-04-14T07:19:27.668Z (8 months ago)
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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