nakama-common

module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0

README

nakama-common

Common protocol message and runtime interface definitions used by Nakama.

Getting Started

This repository defines a set of main high level packages:

  • api - Core protocol message definitions used by Nakama as input/output with various server operations.
  • rtapi - Protocol message definitions used by Nakama for realtime communication with clients over bi-directional socket connections.
  • runtime - Go types and interface definitions that Nakama runtime plugins are expected to conform to. Read more in the Nakama runtime documentation.
Installation

Note: Go 1.13 or above is required.

To pull in nakama-common as a dependency set up your plugin project's go.mod file and run:

go get -u "github.com/heroiclabs/nakama-common"

This will add a new dependency to the latest version of nakama-common and allow you to build your project with:

go build -buildmode=plugin -trimpath

Read more about building Go plugins for Nakama in the runtime documentation.

Contribute

The codebase uses Protocol Buffers as part of the project. This dependency is used to generate source files, which are committed to the repository to simplify builds for contributors.

To build the codebase and generate all sources use these steps.

  1. Install the toolchain.

    go get -u github.com/golang/protobuf/protoc-gen-go
    
  2. Compile protocol buffers files.

    ./generate_proto_gocode
    

The generate_proto_gocode script contains detailed commands to build protobuf source files for both the api and rtapi packages.

License

This project is licensed under the Apache-2 License.

Directories

Path Synopsis
Package runtime is an API to interact with the embedded Runtime environment in Nakama.
Package runtime is an API to interact with the embedded Runtime environment in Nakama.

Jump to

Keyboard shortcuts

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