shared

module
v0.0.0-...-1791c78 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT

Directories

Path Synopsis
bot
Package bot is the Super Chat bot SDK.
Package bot is the Super Chat bot SDK.
audio
Package audio is what a bot plays into a voice room: a Source of Opus packets, from an Ogg Opus file (no codec library needed) or, built with -tags opus, from raw PCM (that needs libopus).
Package audio is what a bot plays into a voice room: a Source of Opus packets, from an Ogg Opus file (no codec library needed) or, built with -tags opus, from raw PCM (that needs libopus).
cli
Package cli is the command line every bot gets: init, run, join, rooms and passwd.
Package cli is the command line every bot gets: init, run, join, rooms and passwd.
cmd/superchat-bot command
superchat-bot is the stock bot: the SDK with only the core commands.
superchat-bot is the stock bot: the SDK with only the core commands.
core
Package core holds the bot's built-in commands.
Package core holds the bot's built-in commands.
examples/radio command
radio is an example bot: the stock bot, plus music.
radio is an example bot: the stock bot, plus music.
internal/api
Package api talks to one Super Chat server: signed HTTP requests (there are no logins; each request is signed by the member key for its room) and the WebSocket that pushes events, messages and voice signaling.
Package api talks to one Super Chat server: signed HTTP requests (there are no logins; each request is signed by the member key for its room) and the WebSocket that pushes events, messages and voice signaling.
internal/store
Package store is a bot's state on disk: one SQLite file (pure Go, no cgo) in the bot's data directory, plus the account secret in a file of its own.
Package store is a bot's state on disk: one SQLite file (pure Go, no cgo) in the bot's data directory, plus the account secret in a file of its own.
Package crypto is the client half of docs/protocol.md in Go: identity, sealing, the room log as a client builds it, messages, invites, blobs, voice signaling and the vault.
Package crypto is the client half of docs/protocol.md in Go: identity, sealing, the room log as a client builds it, messages, invites, blobs, voice signaling and the vault.
Package proto is the Go copy of docs/protocol.md, shared by the server and the bot SDK: identifiers, signature checks and the room-log state machine.
Package proto is the Go copy of docs/protocol.md, shared by the server and the bot SDK: identifiers, signature checks and the room-log state machine.
Package wire holds the shapes that travel between the server and its clients (docs/protocol.md): request and response bodies, and WebSocket messages.
Package wire holds the shapes that travel between the server and its clients (docs/protocol.md): request and response bodies, and WebSocket messages.

Jump to

Keyboard shortcuts

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