package
0.0.34
Repository: https://github.com/cooldogedev/spectrum.git
Documentation: pkg.go.dev

# Functions

NewPool creates a new Pool populated with registered packet factories.
ReadString reads a string from buf, where the string is prefixed with its length encoded as an uint32 in little-endian order.
Register registers a packet factory function for a given ID.
WriteString writes the string s to buf, prefixing it with its length encoded as an uint32 in little-endian order.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ConnectionRequest is sent by clients to connect and authenticate with the service using a token.
ConnectionResponse represents the response sent by the API service in reply to a ConnectionRequest.
Kick is sent by the client to initiate the removal of a specific player from the proxy.
Transfer is sent by the client to initiate the transfer of a specific player to another server.

# Interfaces

Packet represents a protocol packet that can be sent over an API connection.

# Type aliases

Pool is a map holding packet factory functions indexed by their ID.