Code Monkey home page Code Monkey logo

mirbozorgi-com / nakama-golang-sample Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.52 MB

NAKAMA has advised that if anyone wants something customize or additional, they should add RPC by writing Lua/Go/TypeScript scripts in order to customize and change the default behaviour of their functions. In this repository I am using Go and I developed multiple function

Home Page: https://mirbozorgi.com

Dockerfile 8.60% Go 91.40%
nakama golang docker

nakama-golang-sample's Introduction

Intro of NAKAMA

NAKAMA is an open-source distributed social and realtime server for games and apps. It includes a large set of services for users, data storage, and realtime client/server communication; as well as specialized APIs like realtime multiplayer, groups/guilds, and chat.

NAKAMA has advised that if anyone wants something customize or additional, they should add RPC by writing Lua/Go/TypeScript scripts in order to customize and change the default behaviour of their functions.

In this repository I am using Go and I developed multiple function:

  • add leaderboard
  • server time
  • server date

add leaderboard

path:/addleaderboard?http_key=admin_admin_admin
method:POST
desc:This api adds leaderboard to nakama
request model : json format

{"id":"LDB_1", "metadata":{"name":"amqezi"}, "sort":"desc", "operator":"incr", "reset":"0 1 * * *"}

Sort: desc, asc Operator: best, set, incr `

response model: { "id": "LDB_1", "metadata": { "name": "test" }, "sort": "desc", "operator": "incr", "reset": "0 1 * * *" }

server time

path:/servertime?http_key=admin_admin_admin
method:POST
desc:This api returns server utc time
response model: { "payload": "1643523929" }

server date

path:/serverdate?http_key=admin_admin_admin
method:POST
desc:This api returns the human-readable server date
response model: { "payload" : "{\"day\":30, \"hour\":6, \"isdst\":false, \"min\":28, \"month\":1, \"sec\":49, \"wday\":0, \"yday\":30, \"year\":2022}" }

nakama-golang-sample's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.