Documentation ¶
Overview ¶
Package server implements a server following its own custom protocol. The protocol works as follows.
A client connects and sends an object in JSON format matching the structure of the Request type.
The server returns a single character. "t" means that the request is valid. "f" means that the request is invalid (either an attack or an error).
The client disconnects or goes again from step 1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Direction string Value interface{} }
Request is a struct that follows the format that is expected for requests.
Click to show internal directories.
Click to hide internal directories.