online/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0

Directories

Path Synopsis
Package accounts is a self-hostable player account service: guest accounts that upgrade to email sign-in or to a linked OAuth or platform identity (Game Center, Play Games, Steam), and short-lived tokens a game server verifies offline.
Package accounts is a self-hostable player account service: guest accounts that upgrade to email sign-in or to a linked OAuth or platform identity (Game Center, Play Games, Steam), and short-lived tokens a game server verifies offline.
pgstore
Package pgstore opens an accounts.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.
Package pgstore opens an accounts.Store in a Postgres database with the github.com/jackc/pgx/v5 driver.
sqlitestore
Package sqlitestore opens an accounts.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).
Package sqlitestore opens an accounts.Store in a SQLite database file, with the pure-Go modernc.org/sqlite driver (no cgo).
sqlstore
Package sqlstore is an accounts.Store over database/sql, shared by the SQLite (package sqlitestore) and Postgres (package pgstore) stores.
Package sqlstore is an accounts.Store over database/sql, shared by the SQLite (package sqlitestore) and Postgres (package pgstore) stores.
storetest
Package storetest checks an accounts.Store implementation against the Store contract.
Package storetest checks an accounts.Store implementation against the Store contract.
token
Package token issues and verifies the short-lived player tokens of the accounts service.
Package token issues and verifies the short-lived player tokens of the accounts service.
Package achievements declares a game's achievements once, in a versioned YAML file, tracks each player's progress toward them, and reports that progress through NSGo's platform game services: Game Center on macOS, iOS and tvOS, and Google Play Games Services on Android.
Package achievements declares a game's achievements once, in a versioned YAML file, tracks each player's progress toward them, and reports that progress through NSGo's platform game services: Game Center on macOS, iOS and tvOS, and Google Play Games Services on Android.
Package audit writes an append-only JSON Lines log of a server's administrative and security-relevant events — kicks, replaced sessions, operator commands and destructive calls — with the actor and the subject of each, so support questions, anti-cheat review and accountability for admin power have a trail that survives restarts.
Package audit writes an append-only JSON Lines log of a server's administrative and security-relevant events — kicks, replaced sessions, operator commands and destructive calls — with the actor and the subject of each, so support questions, anti-cheat review and accountability for admin power have a trail that survives restarts.
Package cloudsave is a self-hostable cloud save service: per-account save slots over HTTPS, kept in versions so that concurrent writes from two devices are refused rather than silently overwritten, slots over a size limit are rejected, and the last few versions of each slot can be listed and restored.
Package cloudsave is a self-hostable cloud save service: per-account save slots over HTTPS, kept in versions so that concurrent writes from two devices are refused rather than silently overwritten, slots over a size limit are rejected, and the last few versions of each slot can be listed and restored.
sqlstore
Package sqlstore is a cloudsave.Store over database/sql, for SQLite (OpenSQLite, with the pure-Go modernc.org/sqlite driver) and Postgres (OpenPostgres, with github.com/jackc/pgx/v5).
Package sqlstore is a cloudsave.Store over database/sql, for SQLite (OpenSQLite, with the pure-Go modernc.org/sqlite driver) and Postgres (OpenPostgres, with github.com/jackc/pgx/v5).
storetest
Package storetest checks a cloudsave.Store against the contract the service relies on.
Package storetest checks a cloudsave.Store against the contract the service relies on.
internal
cors
Package cors validates web origins and wraps an HTTP handler with Cross-Origin Resource Sharing headers for the self-hosted online services.
Package cors validates web origins and wraps an HTTP handler with Cross-Origin Resource Sharing headers for the self-hosted online services.
wsproto
Package wsproto implements the RFC 6455 WebSocket wire format shared by the netplay transports and pkg/online/wsclient: frame reading and writing with slow-loris-safe allocation, the opening handshake's accept key, and the native client upgrade.
Package wsproto implements the RFC 6455 WebSocket wire format shared by the netplay transports and pkg/online/wsclient: frame reading and writing with slow-loris-safe allocation, the opening handshake's accept key, and the native client upgrade.
Package leaderboard submits scores to and shows the platform's leaderboards, Game Center on Apple platforms and Play Games Services on Android, through NSGo's gameservices package.
Package leaderboard submits scores to and shows the platform's leaderboards, Game Center on Apple platforms and Play Games Services on Android, through NSGo's gameservices package.
selfhost
Package selfhost is a self-hostable leaderboard service, for cross-platform games and games on platforms without a game service: one board ranks the scores a player's devices submit from every platform, keyed by the account the accounts package signs in.
Package selfhost is a self-hostable leaderboard service, for cross-platform games and games on platforms without a game service: one board ranks the scores a player's devices submit from every platform, keyed by the account the accounts package signs in.
Package liveops holds provider-agnostic live operations primitives for NSGo games: crash reports, consent-gated analytics, a cloud-save sync interface, in-app purchases credited into the save, local re-engagement reminders, store review prompt policies, and share cards and payload-carrying invites.
Package liveops holds provider-agnostic live operations primitives for NSGo games: crash reports, consent-gated analytics, a cloud-save sync interface, in-app purchases credited into the save, local re-engagement reminders, store review prompt policies, and share cards and payload-carrying invites.
crashreport
Package crashreport holds the JSON schema of a crash report, shared by the client-side liveops.CrashReporter and the server-side server.Panic report.
Package crashreport holds the JSON schema of a crash report, shared by the client-side liveops.CrashReporter and the server-side server.Panic report.
Package netplay provides cross-target multiplayer primitives for NSGo games:
Package netplay provides cross-target multiplayer primitives for NSGo games:
wire
Package wire defines the YAML wire message schema format for pkg/online/netplay and game protocols, integer-only quantization helpers, bit-packing primitives, and deterministic zero-allocation Go and TypeScript codec generators.
Package wire defines the YAML wire message schema format for pkg/online/netplay and game protocols, integer-only quantization helpers, bit-packing primitives, and deterministic zero-allocation Go and TypeScript codec generators.
Package presence reports what the player is doing (level, game mode, party size, timestamps, artwork, and custom localization tokens) to Steam and Discord friend lists through a single provider-neutral API.
Package presence reports what the player is doing (level, game mode, party size, timestamps, artwork, and custom localization tokens) to Steam and Discord friend lists through a single provider-neutral API.
Package server runs one or more matches of a game at fixed tick rates in a plain Go process, without an NSGo app, window or core.Scope.
Package server runs one or more matches of a game at fixed tick rates in a plain Go process, without an NSGo app, window or core.Scope.
Package wsclient provides a plain RFC 6455 WebSocket client for talking to servers that are not a netplay WebSocketServer: third-party game backends such as Nakama or Colyseus, chat integrations, hosted realtime services, or a custom JSON protocol shared with a web dashboard.
Package wsclient provides a plain RFC 6455 WebSocket client for talking to servers that are not a netplay WebSocketServer: third-party game backends such as Nakama or Colyseus, chat integrations, hosted realtime services, or a custom JSON protocol shared with a web dashboard.

Jump to

Keyboard shortcuts

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